mickael49300_fr

auto_build_Pity_Machine_Frame_pour_Lunaria_Expert

May 29th, 2023
1,881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.76 KB | None | 0 0
  1. print(" auto build Pity Machine Frame pour Lunaria Expert ")
  2. print(" programme V.1 ")
  3. print(" by Mickael49300_fr ")
  4. print(" en attente de ressource ")
  5. while true do
  6. sleep(.1)
  7.  
  8.   while rs.getInput("back") do -- attente du signal de redstone pour lancer le programe
  9. -- chargement des block
  10. print(" chargement des block ")
  11. turtle.select(1) -- Redstone Engineering Block
  12. turtle.suck(1)
  13. turtle.select(2) -- Infused Wood
  14. turtle.turnLeft()
  15. turtle.suck(16)
  16. turtle.turnLeft()
  17. turtle.turnLeft()
  18. turtle.select(3) -- Stone path
  19. turtle.suck(8)
  20. turtle.up()
  21. turtle.select(4) -- Infused Brick
  22. turtle.suck(2)
  23. turtle.turnLeft()
  24. turtle.turnLeft()
  25. turtle.select(5) -- Block Of Redstonium
  26. turtle.suck(1)
  27. turtle.turnRight()
  28. turtle.up()
  29. turtle.up()
  30. turtle.up()
  31.  
  32. -- construction du Pity Machine Frame
  33. print(" construction du Pity Machine Frame ")
  34.  
  35. -- 1er etage
  36. print(" build du 1er etage ")
  37. turtle.turnRight()
  38. turtle.forward()
  39. turtle.turnLeft()
  40. turtle.forward()
  41. turtle.select(2)
  42. turtle.placeDown() -- pose le 1er Infused Wood
  43. turtle.forward()
  44. turtle.placeDown() -- pose le 2eme Infused Wood
  45. turtle.forward()
  46. turtle.placeDown() -- pose le 3eme Infused Wood
  47. turtle.turnLeft()
  48. turtle.forward()
  49. turtle.placeDown() -- pose le 4eme Infused Wood
  50. turtle.forward()
  51. turtle.placeDown() -- pose le 5eme Infused Wood
  52. turtle.turnLeft()
  53. turtle.forward()
  54. turtle.placeDown() -- pose le 6eme Infused Wood
  55. turtle.forward()
  56. turtle.placeDown() -- pose le 7eme Infused Wood
  57. turtle.turnLeft()
  58. turtle.forward()
  59. turtle.placeDown() -- pose le 8eme Infused Wood
  60. turtle.turnLeft()
  61. turtle.forward()
  62. turtle.select(4)
  63. turtle.placeDown() -- pose le 1er Infused Brick
  64. turtle.up()
  65.  
  66. -- 2eme etage
  67. print(" build du 2eme etage ")
  68. turtle.forward()
  69. turtle.turnLeft()
  70. turtle.forward()
  71. turtle.turnLeft()
  72. turtle.select(3)
  73. turtle.placeDown() -- pose le 1er Stone path
  74. turtle.forward()
  75. turtle.placeDown() -- pose le 2eme Stone path
  76. turtle.forward()
  77. turtle.placeDown() -- pose le 3eme Stone path
  78. turtle.turnLeft()
  79. turtle.forward()
  80. turtle.placeDown() -- pose le 4eme Stone path
  81. turtle.forward()
  82. turtle.placeDown() -- pose le 5eme Stone path
  83. turtle.turnLeft()
  84. turtle.forward()
  85. turtle.placeDown() -- pose le 6eme Stone path
  86. turtle.forward()
  87. turtle.placeDown() -- pose le 7eme Stone path
  88. turtle.turnLeft()
  89. turtle.forward()
  90. turtle.placeDown() -- pose le 8eme Stone path
  91. turtle.turnLeft()
  92. turtle.forward()
  93. turtle.select(5)
  94. turtle.placeDown() -- pose  le Block Of Redstonium
  95. turtle.up()
  96.  
  97. -- 3eme etage
  98. print(" build du 3eme etage ")
  99. turtle.forward()
  100. turtle.turnLeft()
  101. turtle.forward()
  102. turtle.turnLeft()
  103. turtle.select(2)
  104. turtle.placeDown() -- pose le 9eme Stone path
  105. turtle.forward()
  106. turtle.placeDown() -- pose le 10eme Stone path
  107. turtle.forward()
  108. turtle.placeDown() -- pose le 11eme Stone path
  109. turtle.turnLeft()
  110. turtle.forward()
  111. turtle.placeDown() -- pose le 12eme Stone path
  112. turtle.forward()
  113. turtle.placeDown() -- pose le 13eme Stone path
  114. turtle.turnLeft()
  115. turtle.forward()
  116. turtle.placeDown() -- pose le 14eme Stone path
  117. turtle.forward()
  118. turtle.placeDown() -- pose le 15eme Stone path
  119. turtle.turnLeft()
  120. turtle.forward()
  121. turtle.placeDown() -- pose le 16eme Stone path
  122. turtle.turnLeft()
  123. turtle.forward()
  124. turtle.select(4)
  125. turtle.placeDown() -- pose le 2eme Infused Brick
  126. turtle.up()
  127.  
  128. -- drop du Redstone Engineering Block
  129. print(" drop du Redstone Engineering Block ")
  130. turtle.select(1)
  131. turtle.dropDown()
  132.  
  133.   -- retour vers la zone d'attente
  134. print(" pause de 15sec ")  
  135. sleep(15)
  136. print(" retour au point de depart ")
  137. turtle.turnLeft()
  138. turtle.turnLeft()
  139. turtle.forward()
  140. turtle.forward()
  141. turtle.down()
  142. turtle.down()
  143. turtle.down()
  144. turtle.down()
  145. turtle.down()
  146. turtle.down()
  147. turtle.down()
  148. turtle.turnLeft()
  149. turtle.turnLeft()
  150.  
  151. sleep(1)
  152. print("en attente de ressource")
  153.    
  154.   end
  155. end
Advertisement
Add Comment
Please, Sign In to add comment