MatthewGB

FloorMine

Jul 21st, 2020
1,036
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. while true do
  2.     while turtle.getFuelLevel() == 0 then
  3.         print("Insert fuel into slot 0")
  4.         turtle.refuel()
  5.         sleep(2)
  6.     end
  7.     isBlock,blockName = turtle.inspectDown()
  8.     if blockName == "minecraft.cobblestone" then
  9.         turtle.digDown()
  10.         turtle.forward()
  11.     else
  12.         turtle.turnRight()
  13.         turtle.turnRight()
  14.         turtle.forward()
  15.         turtle.turnRight()
  16.         turtle.forward()
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment