Advertisement
Spatzenhirn123

Turtle-Quarry-Decke

Apr 20th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. function Check()
  2. while (turtle.getItemSpace(13)+turtle.getItemSpace(14)+turtle.getItemSpace(15)+turtle.getItemSpace(16))>0 do
  3. f=(turtle.getItemSpace(13)+turtle.getItemSpace(14)+turtle.getItemSpace(15)+turtle.getItemSpace(16))
  4. print(" ")
  5. print("--------------------------------")
  6. print("Need more Bricks in Slots 13/16!")
  7. print(f)
  8. print("--------------------------------")
  9. sleep(10)
  10. end
  11. for o=1,12,1 do
  12. turtle.select(o)
  13. turtle.refuel()
  14. end
  15. while turtle.getFuelLevel()<(300) do
  16. f=300-turtle.getFuelLevel()
  17. print(" ")
  18. print("--------------------------------")
  19. print("Need more Fuel in Slot 1/12!")
  20. print(f)
  21. print("--------------------------------")
  22. sleep(10)
  23. for o=1,12,1 do
  24. turtle.select(o)
  25. turtle.refuel()
  26. end
  27. end
  28. end
  29.  
  30. function D()
  31. for d=13,15,1 do
  32. turtle.select(d)
  33. for c=1,2,1 do
  34. turtle.turnRight()
  35. turtle.placeDown()
  36. for r=1,15,1 do
  37. turtle.forward()
  38. turtle.placeDown()
  39. end
  40. turtle.turnLeft()
  41. turtle.forward()
  42. turtle.turnLeft()
  43. turtle.placeDown()
  44. for r=1,15,1 do
  45. turtle.forward()
  46. turtle.placeDown()
  47. end
  48. turtle.turnRight()
  49. turtle.forward()
  50. end
  51. end
  52. turtle.select(16)
  53. turtle.turnRight()
  54. turtle.placeDown()
  55. for r=1,15,1 do
  56. turtle.forward()
  57. turtle.placeDown()
  58. end
  59. turtle.turnLeft()
  60. turtle.forward()
  61. turtle.turnLeft()
  62. turtle.placeDown()
  63. for r=1,15,1 do
  64. turtle.forward()
  65. turtle.placeDown()
  66. end
  67. turtle.turnRight()
  68. turtle.forward()
  69.  
  70. turtle.turnRight()
  71. turtle.placeDown()
  72. for r=1,15,1 do
  73. turtle.forward()
  74. turtle.placeDown()
  75. end
  76. turtle.turnLeft()
  77. turtle.forward()
  78. turtle.turnLeft()
  79. turtle.placeDown()
  80. for r=1,15,1 do
  81. turtle.forward()
  82. turtle.placeDown()
  83. end
  84. turtle.turnLeft()
  85. for r=1,15,1 do
  86. turtle.forward()
  87. end
  88. turtle.turnLeft()
  89. turtle.turnLeft()
  90. print(" ")
  91. print("--------------------------------")
  92. print("Clear Chests? Type -Chest-")
  93. print("--------------------------------")
  94. end
  95.  
  96.  
  97.  
  98.  
  99.  
  100. --Aktion
  101. if turtle.detectDown()==false then
  102. Check()
  103. D()
  104. else
  105. print(" ")
  106. print("--------------------------------")
  107. print("The surface already exist!")
  108. print("--------------------------------")
  109. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement