Advertisement
KTRD

Blaze killa

Feb 25th, 2025 (edited)
3,216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. -- Mock API
  2. --[[
  3. local turtle = {
  4.     detect = function()
  5.         return true
  6.     end,
  7.     detectDown = function()
  8.         return true
  9.     end,
  10.     turnLeft = function() end,
  11.     turnRight = function() end,
  12.     forward = function()
  13.         return true
  14.     end,
  15.     attack = function() end,
  16. }
  17. --]]
  18.  
  19. while not turtle.detect() do
  20.     while not turtle.forward() do
  21.         turtle.attack()
  22.         turtle.suck()
  23.     end
  24. end
  25.  
  26. if not turtle.detectDown() then
  27.     while turtle.detect() do
  28.         turtle.turnLeft()
  29.     end
  30.     while not turtle.detect() do
  31.         while not turtle.forward() do
  32.             turtle.attack()
  33.             turtle.suck()
  34.         end
  35.     end
  36. else
  37.     while turtle.detect() do
  38.         turtle.turnLeft()
  39.     end
  40.     turtle.turnRight()
  41.     turtle.turnRight()
  42. end
  43.  
  44. while true do
  45.     if turtle.getFuelLevel() < 100 then
  46.         turtle.select(1)
  47.         turtle.suck()
  48.         turtle.refuel()
  49.     end
  50.     turtle.turnLeft()
  51.     turtle.turnLeft()
  52.     while not turtle.detect() do
  53.         while not turtle.forward() do
  54.             turtle.attack()
  55.             turtle.suck()
  56.         end
  57.     end
  58.     turtle.turnLeft()
  59.     turtle.turnLeft()
  60.     while not turtle.detect() do
  61.         while not turtle.forward() do
  62.             turtle.attack()
  63.             turtle.suck()
  64.         end
  65.     end
  66.     for i = 1, 16 do
  67.         if turtle.getItemCount(i) > 0 then
  68.             turtle.select(i)
  69.             turtle.dropDown()
  70.         end
  71.     end
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement