Advertisement
Solaris1985

Untitled

Oct 2nd, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. cageSlot = 1
  2. stoneSlot = 2
  3. shardSlot = 3
  4. rednet.close("right")
  5. rednet.open("right")
  6.  
  7. function moveToPos()
  8. setUpPlatform()
  9. end
  10.  
  11. function setUpPlatform()
  12.  
  13. turtle.select(stoneSlot)
  14. turtle.placeUp()
  15. turtle.forward()
  16. turtle.placeUp()
  17. turtle.forward()
  18. turtle.placeUp()
  19. turtle.turnLeft()
  20. turtle.forward()
  21. turtle.turnLeft()
  22. turtle.up()
  23. turtle.up()
  24. turtle.placeUp()
  25. turtle.down()
  26. turtle.placeUp()
  27. turtle.down()
  28. turtle.placeUp()
  29. turtle.forward()
  30. turtle.placeUp()
  31. turtle.forward()
  32. turtle.turnLeft()
  33. turtle.up()
  34. turtle.up()
  35. turtle.placeUp()
  36. turtle.down()
  37. turtle.placeUp()
  38. turtle.down()
  39. turtle.placeUp()
  40. turtle.forward()
  41. turtle.forward()
  42. turtle.turnLeft()
  43. turtle.up()
  44. turtle.up()
  45. turtle.placeUp()
  46. turtle.down()
  47. turtle.placeUp()
  48. turtle.down()
  49. turtle.placeUp()
  50. turtle.forward()
  51. turtle.placeUp()
  52. turtle.forward()
  53. turtle.up()
  54. turtle.up()
  55. turtle.placeUp()
  56. turtle.down()
  57. turtle.placeUp()
  58. turtle.down()
  59. turtle.placeUp()
  60. turtle.forward()
  61. turtle.up()
  62. turtle.up()
  63. turtle.turnLeft()
  64. turtle.forward()
  65. turtle.turnLeft()
  66. turtle.forward()
  67. turtle.forward()
  68. sleep(3)
  69. destroyPlatform()
  70. end
  71.  
  72. function destroyPlatform()
  73.  
  74. turtle.digDown()
  75. turtle.down()
  76. turtle.dig()
  77. turtle.forward()
  78. turtle.turnLeft()
  79. turtle.dig()
  80. turtle.forward()
  81. turtle.turnLeft()
  82. turtle.digUp()
  83. turtle.up()
  84. turtle.digUp()
  85. turtle.down()
  86. turtle.dig()
  87. turtle.forward()
  88. turtle.dig()
  89. turtle.forward()
  90. turtle.turnLeft()
  91. turtle.digUp()
  92. turtle.up()
  93. turtle.digUp()
  94. turtle.down()
  95. turtle.dig()
  96. turtle.forward()
  97. turtle.dig()
  98. turtle.forward()
  99. turtle.turnLeft()
  100. turtle.digUp()
  101. turtle.up()
  102. turtle.digUp()
  103. turtle.down()
  104. turtle.dig()
  105. turtle.forward()
  106. turtle.dig()
  107. turtle.forward()
  108. turtle.turnLeft()
  109. turtle.digUp()
  110. turtle.up()
  111. turtle.digUp()
  112. turtle.down()
  113. turtle.forward()
  114. turtle.turnLeft()
  115. turtle.down()
  116. end
  117.  
  118.  
  119. function changeShard()
  120. turtle.digUp()
  121. turtle.suckUp()
  122. for i = 1,4 do
  123. turtle.turnLeft()
  124. turtle.suck()
  125. end
  126. turtle.select(cageSlot)
  127. turtle.placeUp()
  128. turtle.select(shardSlot)
  129. turtle.placeUp()
  130. destroyPlatform()
  131.  
  132. end
  133.  
  134.  
  135. function moveBackHome()
  136. for i = 1,7 do
  137. turtle.up()
  138. end
  139. start()
  140. end
  141.  
  142.  
  143. function idle()
  144.  
  145. end
  146.  
  147. function start()
  148.  
  149. id, message, dis = rednet.receive()
  150.  
  151. if message == "go" then
  152.  
  153. moveToPos()
  154. end
  155.  
  156.  
  157. end
  158.  
  159. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement