Advertisement
Spatzenhirn123

Turtle-Quarry-L

Apr 20th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 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. function L()
  57. for t=1,8,1 do
  58. turtle.digDown()
  59. turtle.turnRight()
  60. turtle.dig()
  61. turtle.turnLeft()
  62. turtle.dig()
  63. while turtle.down()==true do
  64. turtle.digDown()
  65. turtle.dig()
  66. turtle.turnRight()
  67. turtle.dig()
  68. turtle.down()
  69. turtle.digDown()
  70. turtle.dig()
  71. turtle.turnLeft()
  72. turtle.dig()
  73. end
  74. for u=1,a,1 do
  75. turtle.digUp()
  76. turtle.up()
  77. end
  78. Item()
  79. if t<8 then
  80. Weiter()
  81. end
  82. end
  83. end
  84.  
  85. --Aktion
  86. Start()
  87. L()
  88. turtle.forward()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement