Advertisement
Muzze77

Mining Turtle Multi Quarry

Mar 31st, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. print("QuarryTurtle")
  2. print("by Muzze77")
  3. print("Wie viele Schritte sollen gegangen werden?")
  4. schritte = io.read()
  5. warten = 200
  6.  
  7. function place()
  8. shell.run("clear")
  9. turtle.select(5)
  10. turtle.turnRight()
  11. turtle.place()
  12. sleep(0.5)
  13. turtle.select(6)
  14. sleep(0.5)
  15. turtle.up()
  16. turtle.placeDown()
  17. sleep(0.5)
  18. turtle.select(7)
  19. sleep(0.5)
  20. turtle.place()
  21. turtle.up()
  22. sleep(0.5)
  23. turtle.select(8)
  24. sleep(0.5)
  25. turtle.placeDown()
  26. sleep(1)
  27. turtle.select(1)
  28.  
  29. end
  30.  
  31. function cut()
  32. turtle.select(8)
  33. sleep(0.5)
  34. turtle.digDown()
  35. turtle.down()
  36. sleep(0.5)
  37. turtle.select(7)
  38. turtle.dig()
  39. sleep(0.5)
  40. turtle.select(6)
  41. turtle.digDown()
  42. turtle.down()
  43. sleep(0.5)
  44. turtle.select(5)
  45. turtle.dig()
  46. turle.turnRight()
  47. turtle.forward()
  48. turtle.forward()
  49. turtle.forward()
  50. turtle.forward()
  51. turtle.forward()
  52. turtle.forward()
  53. turtle.forward()
  54. turtle.forward()
  55. turtle.forward()
  56. turtle.forward()
  57.  
  58. end
  59.  
  60. while true do
  61. while schritte ~= 0 do
  62. turtle.select(16)
  63. shell.run("refuel 4")
  64. turtle.select(1)
  65. place()
  66. while warten ~= 0 do
  67. shell.run("clear")
  68. sleep(0.1)
  69. print("noch " .. warten .. " Sec warten")
  70. sleep(0.9)
  71. warten = warten - 1
  72. end
  73. cut()
  74. schritte = schritte - 1
  75. warten = 400
  76. end
  77.  
  78. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement