Mariomarco

Spagetti

May 27th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.04 KB | None | 0 0
  1. local function checkFuel()
  2.     if turtle.getFuelLevel() <= 100 then
  3.         turtle.select(1)
  4.         turtle.suckUp()
  5.         turtle.refuel(64)
  6.     end
  7. end
  8.  
  9. checkFuel()
  10.  
  11. turtle.select(16)
  12. turtle.turnRight()
  13. turtle.suck()
  14. turtle.transferTo(2,4)
  15.  
  16. if turtle.getItemCount(2) < 4 then
  17. term.write("needed more souls")
  18. turtle.select(14)
  19. turtle.suck()
  20. turtle.select(2)
  21. turtle.drop()
  22. turtle.select(14)
  23. turtle.transferTo(2,4)
  24. turtle.drop()
  25. end
  26.  
  27. turtle.select(16)
  28. turtle.drop()
  29.  
  30. turtle.turnRight()
  31. turtle.turnRight()
  32.  
  33.  
  34. turtle.select(15)
  35. turtle.suck()
  36. turtle.transferTo(3,3)
  37.  
  38. if turtle.getItemCount(3) < 3 then
  39. term.write("needed more skulls")
  40. turtle.select(13)
  41. turtle.suck()
  42. turtle.select(3)
  43. turtle.drop()
  44. turtle.select(13)
  45. turtle.transferTo(3,3)
  46. turtle.drop()
  47. end
  48.  
  49. turtle.select(15)
  50. turtle.drop()
  51.  
  52. turtle.turnRight()
  53.  
  54. checkFuel()
  55.  
  56. turtle.select(1)
  57.  
  58. redstone.setOutput("bottom",true)
  59. sleep(0.1)
  60. redstone.setOutput("bottom",false)
  61.  
  62. turtle.forward()
  63. turtle.forward()
  64. turtle.turnRight()
  65.  
  66. turtle.forward()
  67. turtle.forward()
  68. turtle.forward()
  69. turtle.turnLeft()
  70.  
  71. turtle.forward()
  72. turtle.forward()
  73. turtle.forward()
  74. turtle.forward()
  75. turtle.forward()
  76.  
  77. turtle.select(2)
  78. turtle.placeUp()
  79. turtle.turnRight()
  80. turtle.forward()
  81. turtle.placeUp()
  82. turtle.forward()
  83. turtle.placeUp()
  84.  
  85. turtle.turnRight()
  86. turtle.turnRight()
  87. turtle.place()
  88.  
  89. turtle.turnLeft()
  90. turtle.forward()
  91. turtle.turnLeft()
  92. turtle.turnLeft()
  93.  
  94. turtle.up()
  95. turtle.up()
  96.  
  97. turtle.select(3)
  98.  
  99. turtle.place()
  100. turtle.turnLeft()
  101. turtle.forward()
  102.  
  103. turtle.turnRight()
  104. turtle.place()
  105. turtle.turnLeft()
  106. turtle.forward()
  107.  
  108. turtle.turnRight()
  109. turtle.place()
  110.  
  111. turtle.turnLeft()
  112. turtle.turnLeft()
  113.  
  114. turtle.down()
  115. turtle.down()
  116.  
  117. turtle.forward()
  118. turtle.forward()
  119. turtle.forward()
  120. turtle.forward()
  121. turtle.forward()
  122. turtle.forward()
  123.  
  124. turtle.turnRight()
  125. turtle.forward()
  126. turtle.forward()
  127. turtle.forward()
  128.  
  129. turtle.turnLeft()
  130. turtle.forward()
  131. turtle.turnLeft()
  132. turtle.turnLeft()
  133.  
  134. sleep(45)
  135. redstone.setOutput("bottom",true)
  136. sleep(0.1)
  137. redstone.setOutput("bottom",false)
Advertisement
Add Comment
Please, Sign In to add comment