Advertisement
Guest User

turtle miner

a guest
May 25th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2. length = 100
  3.  
  4. for i=1,length,1 do
  5. while turtle.detect() do
  6. turtle.dig()
  7. sleep(1)
  8. turtle.forward()
  9. end
  10.  
  11. while turtle.detectUp() do
  12. turtle.digUp()
  13. sleep(1)
  14. turtle.up()
  15. end
  16.  
  17. while turtle.detectUp() do
  18. turtle.digUp()
  19. sleep(1)
  20. turtle.down()
  21. turtle.down()
  22. end
  23. turtle.forward()
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement