Advertisement
Guest User

cube

a guest
Feb 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.90 KB | None | 0 0
  1. function Build()
  2. if true then
  3. turtle.forward()
  4. turtle.forward()
  5. turtle.place()
  6. turtle.back()
  7. turtle.place()
  8. turtle.turnLeft()
  9. turtle.back()
  10. turtle.place()
  11. turtle.back()
  12. turtle.place()
  13. turtle.turnLeft()
  14. turtle.back()
  15. turtle.place()
  16. turtle.back()
  17. turtle.place()
  18. turtle.turnLeft()
  19. turtle.back()
  20. turtle.place()
  21. turtle.up()
  22. turtle.placeDown()
  23. turtle.place()
  24. turtle.turnLeft()
  25. turtle.turnLeft()
  26. turtle.place()
  27. turtle.turnLeft()
  28. turtle.forward()
  29. turtle.forward()
  30. turtle.turnLeft()
  31. turtle.place()
  32. turtle.turnLeft()
  33. turtle.turnLeft()
  34. turtle.place()
  35. turtle.up()
  36. turtle.place()
  37. turtle.back()
  38. turtle.place()
  39. turtle.turnLeft()
  40. turtle.back()
  41. turtle.place()
  42. turtle.back()
  43. turtle.place()
  44. turtle.turnLeft()
  45. turtle.back()
  46. turtle.place()
  47. turtle.back()
  48. turtle.place()
  49. turtle.turnLeft()
  50. turtle.back()
  51. turtle.place()
  52. turtle.turnRight()
  53. turtle.back()
  54. turtle.place()
  55. turtle.down()
  56. turtle.down()
  57. turtle.back()
  58. turtle.back()
  59. turtle.turnLeft()
  60. turtle.back()
  61. turtle.back()
  62. end
  63.  
  64. end
  65.  
  66. function mid()
  67. if true then
  68.   turtle.up()
  69.   turtle.up()
  70.   turtle.up()
  71.   turtle.turnRight()
  72.   turtle.forward()
  73.   turtle.forward()
  74.   turtle.forward()
  75.   turtle.forward()
  76.   turtle.forward()
  77.   turtle.forward()
  78.   turtle.forward()
  79.   turtle.forward()
  80.   turtle.forward()
  81.   turtle.turnLeft()
  82.   end
  83. end
  84.  
  85.  
  86. function left()
  87.   if true then
  88.   turtle.turnLeft()
  89.   turtle.forward()
  90.   turtle.forward()
  91.   turtle.forward()
  92.   turtle.turnRight()
  93.   end
  94.  end
  95.  
  96. function up()
  97. if true then
  98.   turtle.up()
  99.   turtle.up()
  100.   turtle.up()
  101.   end
  102. end
  103.  
  104.  
  105. function one()
  106. if true then
  107.   turtle.select(1)
  108.   end
  109. end
  110.  
  111. function two()
  112. if true then
  113.   turtle.select(2)
  114.   end
  115. end
  116.  
  117. function three()
  118. if true then
  119.   turtle.select(3)
  120.   end
  121. end
  122.  
  123. function right()
  124. if true then
  125.   turtle.turnRight()
  126.   turtle.forward()
  127.   turtle.forward()
  128.   turtle.forward()
  129.   turtle.turnLeft()
  130.   end
  131. end
  132.  
  133. function down()
  134. if true then
  135.   turtle.down()
  136.   turtle.down()
  137.   turtle.down()
  138.   end
  139. end
  140.  
  141. function back()
  142. if true then
  143.   turtle.back()
  144.   turtle.back()
  145.   turtle.back()
  146.   end
  147. end
  148.  
  149. function four()
  150. if true then
  151.   turtle.select(4)
  152.   end
  153. end
  154.  
  155. function five()
  156. if true then
  157.   turtle.select(5)
  158.   end
  159. end
  160.  
  161. function six()
  162. if true then
  163.   turtle.select(6)
  164.   end
  165. end
  166.  
  167. function seven()
  168. if true then
  169.   turtle.select(7)
  170.   end
  171. end
  172.  
  173. local run = 0
  174.  
  175. term.write("how many...")
  176. run = read()
  177.  
  178. for i = 1, run do
  179.   one()
  180.   Build()
  181.   Build()
  182.   Build()
  183.   two()
  184.   mid()
  185.   Build()
  186.   left()
  187.   Build()
  188.   mid()
  189.   Build()
  190.   three()
  191.   Build()
  192.   Build()
  193.   right()
  194.   right()
  195.   right()
  196.   down()
  197.   down()
  198.   back()
  199.   Build()
  200.   four()
  201.   left()
  202.   Build()
  203.   mid()
  204.   up()
  205.   Build()
  206.   left()
  207.   Build()
  208.   down()
  209.   down()
  210.   right()
  211.   right()
  212.   right()
  213.   back()
  214.   five()
  215.   Build()
  216.   Build()
  217.   Build()
  218.   six()
  219.   mid()
  220.   Build()
  221.   left()
  222.   Build()
  223.   mid()
  224.   Build()
  225.   seven()
  226.   Build()
  227.   Build()
  228.  
  229. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement