Advertisement
Spatzenhirn123

Chunkfiller

May 21st, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------------
  2. --CODE-------------------------------------------------------------------------------------------------------------------
  3. -------------------------------------------------------------------------------------------------------------------------
  4. --Start height
  5. local args = {...}
  6. a = args[1]
  7.  
  8.  
  9. --Items to Ender-Chest---------------------------------------------------------------------------------------------------
  10. function Item()
  11. turtle.digUp()
  12. turtle.select(1)
  13. turtle.placeUp()
  14. for i=4,16,1 do
  15. turtle.select(i)
  16. turtle.dropUp()
  17. end
  18. turtle.select(1)
  19. turtle.digUp()
  20. end
  21.  
  22.  
  23. --Startcheck: Fuel-------------------------------------------------------------------------------------------------------
  24. function Start()
  25. shell.run("label set Filler")
  26. while turtle.getFuelLevel()<(64*a+10000) do
  27. turtle.select(2)
  28. turtle.placeUp()
  29. turtle.suckUp()
  30. shell.run("refuel all")
  31. turtle.select(2)
  32. turtle.digUp()
  33. end
  34.  
  35. turtle.select(4)
  36. turtle.up()
  37. turtle.placeUp()
  38. turtle.select(1)
  39. turtle.down()
  40.  
  41. print(" ")
  42. print("--------------------------------")
  43. print("Starting Filler!")
  44. print("--------------------------------")
  45. end
  46.  
  47.  
  48. --Move-------------------------------------------------------------------------------------------------------------------
  49. function Move()
  50. while turtle.forward()==false do
  51. sleep(1)
  52. end
  53. end
  54.  
  55.  
  56. --Build Flat-Ground------------------------------------------------------------------------------------------------------
  57. --Get Bricks
  58. function Bricks()
  59. while turtle.getItemSpace(4)>0 do
  60. turtle.select(3)
  61. turtle.placeUp()
  62. turtle.select(4)
  63. turtle.suckUp()
  64. turtle.select(3)
  65. turtle.digUp()
  66. turtle.select(4)
  67. end
  68. end
  69. --Building
  70. function D()
  71. for d=1,3,1 do
  72. Bricks()
  73. for c=1,2,1 do
  74. turtle.turnRight()
  75. turtle.placeDown()
  76. for r=1,15,1 do
  77. Move()
  78. turtle.placeDown()
  79. end
  80. turtle.turnLeft()
  81. Move()
  82. turtle.turnLeft()
  83. turtle.placeDown()
  84. for r=1,15,1 do
  85. Move()
  86. turtle.placeDown()
  87. end
  88. turtle.turnRight()
  89. Move()
  90. end
  91. end
  92. Bricks()
  93. turtle.turnRight()
  94. turtle.placeDown()
  95. for r=1,15,1 do
  96. Move()
  97. turtle.placeDown()
  98. end
  99. turtle.turnLeft()
  100. Move()
  101. turtle.turnLeft()
  102. turtle.placeDown()
  103. for r=1,15,1 do
  104. Move()
  105. turtle.placeDown()
  106. end
  107. turtle.turnRight()
  108. Move()
  109.  
  110. turtle.turnRight()
  111. turtle.placeDown()
  112. for r=1,15,1 do
  113. Move()
  114. turtle.placeDown()
  115. end
  116. turtle.turnLeft()
  117. Move()
  118. turtle.turnLeft()
  119. turtle.placeDown()
  120. for r=1,15,1 do
  121. Move()
  122. turtle.placeDown()
  123. end
  124.  
  125. turtle.turnLeft()
  126. for r=1,15,1 do
  127. Move()
  128. end
  129. turtle.turnLeft()
  130. turtle.turnLeft()
  131. Item()
  132. end
  133.  
  134.  
  135. -------------------------------------------------------------------------------------------------------------------------
  136. --Actions----------------------------------------------------------------------------------------------------------------
  137. -------------------------------------------------------------------------------------------------------------------------
  138.  
  139.  
  140. Start()
  141.  
  142. while turtle.down()==true do
  143. turtle.down()
  144. end
  145. turtle.up()
  146.  
  147. for i=1,a,1 do
  148. D()
  149. turtle.up()
  150. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement