Guest User

Stripmine

a guest
Feb 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. function GRAB()
  2.  
  3. turtle.dig()
  4.  
  5.  
  6.  
  7. os.sleep(0.5)
  8.  
  9.  
  10.  
  11. while turtle.detect()==true do
  12.  
  13.  
  14.  
  15. turtle.dig()
  16.  
  17.  
  18.  
  19. os.sleep(0.5)
  20.  
  21.  
  22.  
  23. end
  24.  
  25.  
  26.  
  27. turtle.forward()
  28.  
  29.  
  30.  
  31. turtle.digUp()
  32.  
  33.  
  34.  
  35.  
  36. os.sleep(0.5)
  37.  
  38.  
  39.  
  40. while turtle.detectUp()==true do
  41.  
  42.  
  43.  
  44. turtle.digUp()
  45.  
  46.  
  47.  
  48. os.sleep(0.5)
  49.  
  50.  
  51.  
  52. end
  53.  
  54. end
  55.  
  56. w=turtle.getItemCount(16)
  57.  
  58. for
  59. j=1,w do
  60.  
  61.  
  62.  
  63.  
  64. for i=1,3 do
  65.  
  66.  
  67. GRAB()
  68. end
  69.  
  70.  
  71.  
  72. turtle.back()
  73.  
  74. turtle.select(16)
  75.  
  76.  
  77. turtle.placeUp()
  78.  
  79.  
  80. turtle.forward()
  81.  
  82.  
  83. turtle.turnRight()
  84.  
  85.  
  86.  
  87. for i=1,5 do
  88.  
  89.  
  90.  
  91. GRAB()
  92. end
  93.  
  94.  
  95.  
  96.  
  97. turtle.turnLeft()
  98.  
  99.  
  100.  
  101. turtle.turnLeft()
  102.  
  103.  
  104.  
  105. for i=1,5 do
  106.  
  107.  
  108.  
  109. turtle.forward()
  110.  
  111.  
  112.  
  113. end
  114.  
  115.  
  116.  
  117.  
  118. for i=1,5 do
  119.  
  120.  
  121.  
  122. GRAB()
  123.  
  124. end
  125.  
  126.  
  127.  
  128.  
  129. turtle.turnLeft()
  130.  
  131.  
  132.  
  133. turtle.turnLeft()
  134.  
  135.  
  136.  
  137. for i=1,5 do
  138.  
  139.  
  140.  
  141. turtle.forward()
  142.  
  143.  
  144.  
  145. end
  146.  
  147.  
  148.  
  149. turtle.turnLeft()
  150.  
  151. end
  152.  
  153. turtle.turnLeft()
  154. turtle.turnLeft()
  155. for i=1,w*3 do
  156. turtle.forward()
  157. end
Add Comment
Please, Sign In to add comment