Advertisement
seb_foulger

Untitled

Apr 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local x, y, z = gps.locate()
  2. Counter = 0
  3. while turtle.detectDown() and y > 4 do
  4. turtle.digDown()
  5. turtle.down()
  6. Counter = Counter + 1
  7. local x, y, z = gps.locate()
  8. end
  9. if y < 5 then
  10. for n = 1, Counter do
  11. turtle.up()
  12. end
  13. else
  14. for n = 1, 4 do
  15. turtle.dig()
  16. turtle.forward()
  17. end
  18. while turtle.detect() do
  19. for n = 1, 3 do
  20. turtle.digUp()
  21. turtle.digDown()
  22. turtle.up()
  23. turtle.dig()
  24. turtle.forward()
  25. end
  26. turtle.turnRight()
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement