Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. turtle.refuel()
  2. print("Turtle Refueled")
  3. for i = 1, 500() #Value 500 can be changed depending on how many times needs to be looped.
  4. print("Moving D1")
  5. turtle.turnLeft()
  6. turtle.forward()
  7. turtle.turnRight()
  8. print("Digging D1")
  9. turtle.dig()
  10. print("Moving D2")
  11. turtle.turnRight()
  12. turtle.forward()
  13. turtle.turnLeft()
  14. print("Digging D2")
  15. turtle.dig()
  16. print("Moving D3")
  17. turtle.turnRight()
  18. turtle.forward()
  19. turtle.turnLeft()
  20. print("Digging D3")
  21. turtle.dig()
  22. print("Moving M3")
  23. turtle.up()
  24. print("Digging M3")
  25. turtle.dig()
  26. print("Moving M2")
  27. turtle.turnLeft()
  28. turtle.forward()
  29. turtle.turnRight()
  30. print("Digging M2")
  31. turtle.dig()
  32. print("Digging M1")
  33. turtle.turnLeft()
  34. turtle.forward()
  35. turtle.turnRight()
  36. print("Digging M1")
  37. turtle.dig()
  38. print("Moving F1")
  39. turtle.up()
  40. print("Digging F1")
  41. turtle.dig()
  42. print("Moving F2")
  43. turtle.turnRight()
  44. turtle.forward()
  45. turtle.turnLeft()
  46. print("Digging F2")
  47. turtle.dig()
  48. print("Moving F3")
  49. turtle.turnRight()
  50. turtle.forward()
  51. turtle.turnLeft()
  52. print("Digging F3")
  53. turtle.dig()
  54. print("Resetting position")
  55. turtle.turnLeft()
  56. turtle.forward()
  57. turtle.turnRight()
  58. turtle.down()
  59. turtle.down()
  60. turtle.forward()
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement