Advertisement
Spatzenhirn123

Turtle-Quarry-T

Apr 20th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. local args = {...}
  2. a = args[1]-1
  3.  
  4. function Item()
  5. turtle.digUp()
  6. turtle.select(1)
  7. turtle.placeUp()
  8. for i=2,16,1 do
  9. turtle.select(i)
  10. turtle.dropUp()
  11. end
  12. turtle.select(1)
  13. end
  14. --Startcheck: Chests und Fuel
  15. function Start()
  16. for o=2,16,1 do
  17. turtle.select(o)
  18. turtle.refuel()
  19. end
  20. while turtle.getFuelLevel()<(20*a+500) do
  21. f=(20*a+500)-turtle.getFuelLevel()
  22. print(" ")
  23. print("--------------------------------")
  24. print("Need more Fuel in Slot 2/16!")
  25. print(f)
  26. print("--------------------------------")
  27. sleep(10)
  28. for o=2,16,1 do
  29. turtle.select(o)
  30. turtle.refuel()
  31. end
  32. end
  33. while turtle.getItemSpace(1)>56 do
  34. f=turtle.getItemSpace(1)-56
  35. print(" ")
  36. print("--------------------------------")
  37. print("Need more Chests in Slot 1!")
  38. print(f)
  39. print("--------------------------------")
  40. sleep(10)
  41. end
  42. turtle.select(1)
  43. print(" ")
  44. print("--------------------------------")
  45. print("Starting Quarry!")
  46. print("--------------------------------")
  47. end
  48.  
  49. function Weiter()
  50. turtle.dig()
  51. turtle.forward()
  52. turtle.dig()
  53. turtle.forward()
  54. end
  55.  
  56.  
  57. function T()
  58. for t=1,8,1 do
  59. turtle.digDown()
  60. turtle.turnRight()
  61. turtle.dig()
  62. turtle.turnLeft()
  63. turtle.dig()
  64. turtle.turnLeft()
  65. turtle.dig()
  66. while turtle.down()==true do
  67. turtle.digDown()
  68. turtle.dig()
  69. turtle.turnRight()
  70. turtle.dig()
  71. turtle.turnRight()
  72. turtle.dig()
  73. turtle.down()
  74. turtle.digDown()
  75. turtle.dig()
  76. turtle.turnLeft()
  77. turtle.dig()
  78. turtle.turnLeft()
  79. turtle.dig()
  80. end
  81. turtle.turnRight()
  82. for u=1,a,1 do
  83. turtle.digUp()
  84. turtle.up()
  85. end
  86. Item()
  87. if t<8 then
  88. Weiter()
  89. end
  90. end
  91. end
  92.  
  93.  
  94. --Aktion
  95. Start()
  96. T()
  97. turtle.forward()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement