Guest User

startup.lua

a guest
Dec 22nd, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. function progress()
  2.     solid, block = turtle.inspect()
  3.     if solid then
  4.         turtle.turnLeft()
  5.     else
  6.         turtle.forward()
  7.     end
  8. end
  9.  
  10. function conditionalBreak()
  11.     solid, block = turtle.inspectDown()
  12.     if block.name == "ae2:quartz_cluster" then
  13.         turtle.digDown()
  14.     end
  15. end
  16.  
  17. turtle.refuel()
  18.  
  19. while true do
  20.     progress()
  21.     conditionalBreak()
  22.     sleep(2)
  23. end
Add Comment
Please, Sign In to add comment