Advertisement
xavierlebel

oil

Mar 22nd, 2014
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function placeleft()
  2. turtle.turnRight()
  3. turtle.forward()
  4. turtle.turnLeft()
  5. turtle.place()
  6. end
  7.  
  8. function placeright()
  9. turtle.turnLeft()
  10. turtle.forward()
  11. turtle.turnRight()
  12. turtle.place()
  13. end
  14.  
  15. function goto()
  16. turtle.turnRight()
  17. turtle.forward()
  18. turtle.forward()
  19. turtle.turnRight()
  20. turtle.forward()
  21. turtle.forward()
  22. turtle.forward()
  23. turtle.forward()
  24. turtle.forward()
  25. turtle.forward()
  26. turtle.forward()
  27. turtle.forward()
  28. turtle.forward()
  29. turtle.forward()
  30. turtle.forward()
  31. turtle.turnRight()
  32. turtle.forward()
  33. turtle.forward()
  34. turtle.forward()
  35. turtle.forward()
  36. turtle.forward()
  37. turtle.forward()
  38. turtle.turnLeft()
  39. turtle.place()
  40. end
  41.  
  42. function rowleft()
  43. placeleft()
  44. placeleft()
  45. placeleft()
  46. placeleft()
  47. placeleft()
  48. placeleft()
  49. placeleft()
  50. placeleft()
  51. placeleft()
  52. placeleft()
  53. end
  54.  
  55. function rowright()
  56. placeright()
  57. placeright()
  58. placeright()
  59. placeright()
  60. placeright()
  61. placeright()
  62. placeright()
  63. placeright()
  64. placeright()
  65. placeright()
  66. end
  67.  
  68. function rowup()
  69. turtle.up()
  70. turtle.place()
  71. end
  72.  
  73. function rowdown()
  74. turtle.down()
  75. end
  76.  
  77. function returnto()
  78. turtle.turnRight()
  79. turtle.turnRight()
  80. turtle.turnRight()
  81. turtle.forward()
  82. turtle.forward()
  83. turtle.forward()
  84. turtle.forward()
  85. turtle.forward()
  86. turtle.forward()
  87. turtle.forward()
  88. turtle.forward()
  89. turtle.forward()
  90. turtle.forward()
  91. turtle.forward()
  92. turtle.forward()
  93. turtle.forward()
  94. turtle.forward()
  95. turtle.forward()
  96. turtle.forward()
  97. turtle.turnLeft()
  98. turtle.forward()
  99. turtle.forward()
  100. turtle.forward()
  101. turtle.forward()
  102. turtle.forward()
  103. turtle.forward()
  104. turtle.forward()
  105. turtle.forward()
  106. turtle.forward()
  107. turtle.forward()
  108. turtle.forward()
  109. turtle.turnLeft()
  110. turtle.forward()
  111. turtle.forward()
  112. turtle.turnRight()
  113. end
  114.  
  115. while true do
  116. if rs.getInput("bottom") then
  117. turtle.select(1)
  118. turtle.dig()
  119.  
  120. goto()
  121. rowleft()
  122. rowup()
  123. rowright()
  124. rowup()
  125. rowleft()
  126. rowdown()
  127. rowdown()
  128.  
  129. returnto()
  130.  
  131. sleep(2)
  132.  
  133. end
  134. sleep(2)
  135. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement