Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. turtle.up()
  2. turtle.up()
  3. while true do
  4. for i = 0, 7 do
  5. local detect = turtle.detect()
  6. if detect then
  7. turtle.dig()
  8. end
  9. detect = turtle.detectDown()
  10. if detect then
  11. turtle.digDown()
  12. end
  13. turtle.forward()
  14. end
  15. turtle.turnRight()
  16. for i = 0, 1 do
  17. detect = turtle.detectDown()
  18. if detect then
  19. turtle.dig()
  20. end
  21. detect = turtle.detectDown()
  22. if detect then
  23. turtle.digDown()
  24. end
  25. turtle.forward()
  26. end
  27. turtle.turnRight()
  28. for i = 0, 7 do
  29. detect = turtle.detect()
  30. if detect then
  31. turtle.dig()
  32. end
  33. detect = turtle.detectDown()
  34. if detect then
  35. turtle.digDown()
  36. end
  37. turtle.forward()
  38. end
  39. turtle.turnRight()
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement