SHARE
TWEET

tunnel.lua

a guest Dec 3rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local tArgs = {...}
  2. distance = tonumber(tArgs[1])
  3.  
  4.     turtle.up()
  5.    
  6. for x = 1, 17 do
  7.     turtle.select(2)
  8.     turtle.placeDown()
  9. for x = 1, 4 do
  10.     if turtle.detect() == true then
  11.         repeat
  12.         turtle.dig()
  13.         sleep(0.25)
  14.         until
  15.         turtle.detect() == false
  16.     end
  17.     turtle.forward()
  18.     turtle.digUp()
  19.     turtle.digDown()
  20. end
  21. end
  22.  
  23. for x = 1, 1 do
  24.     turtle.turnLeft()
  25.     if turtle.detect() == true then
  26.         repeat
  27.         turtle.dig()
  28.         sleep(0.25)
  29.         until
  30.         turtle.detect() == false
  31.     end
  32.     turtle.forward()
  33.     turtle.digUp()
  34.     turtle.digDown()
  35.     turtle.turnLeft()
  36. end
  37.  
  38. for x = 1, 67 do
  39.     if turtle.detect() == true then
  40.         repeat
  41.         turtle.dig()
  42.         sleep(0.25)
  43.         until
  44.         turtle.detect() == false
  45.     end
  46.     turtle.forward()
  47.     turtle.digUp()
  48.     turtle.digDown()
  49. end
  50.  
  51. for x = 1, 1 do
  52.     turtle.turnLeft()
  53.     turtle.forward()
  54.     if turtle.detect() == true then
  55.         repeat
  56.         turtle.dig()
  57.         sleep(0.25)
  58.         until
  59.         turtle.detect() == false
  60.     end
  61.     turtle.forward()
  62.     turtle.digUp()
  63.     turtle.digDown()
  64.     turtle.turnLeft()
  65. end
  66.  
  67. for x = 1, 67 do
  68.     if turtle.detect() == true then
  69.         repeat
  70.         turtle.dig()
  71.         sleep(0.25)
  72.         until
  73.         turtle.detect() == false
  74.     end
  75.     turtle.forward()
  76.     turtle.digUp()
  77.     turtle.digDown()
  78. end
  79.  
  80. for x = 1, 1 do
  81.     turtle.turnLeft()
  82.     turtle.forward()
  83.     turtle.select(1)
  84.     turtle.placeDown()
  85.     for i = 4, 16 do
  86.         turtle.select(i)
  87.         turtle.dropDown()
  88.     end
  89.     turtle.forward()
  90.     if turtle.detect() == true then
  91.         repeat
  92.         turtle.dig()
  93.         sleep(0.25)
  94.         until
  95.         turtle.detect() == false
  96.     end
  97.     turtle.forward()
  98.     turtle.digUp()
  99.     turtle.digDown()
  100.     turtle.turnLeft()
  101. end
  102.  
  103. for x = 1, 67 do
  104.     if turtle.detect() == true then
  105.         repeat
  106.         turtle.dig()
  107.         sleep(0.25)
  108.         until
  109.         turtle.detect() == false
  110.     end
  111.     turtle.forward()
  112.     turtle.digUp()
  113.     turtle.digDown()
  114. end
  115.  
  116. for x = 1, 1 do
  117.     turtle.turnLeft()
  118.     turtle.forward()
  119.     turtle.forward()
  120.     turtle.forward()
  121. end
  122.  
  123. for x = 1, 1 do
  124.     if turtle.detect() == true then
  125.         repeat
  126.         turtle.dig()
  127.         sleep(0.25)
  128.         until
  129.         turtle.detect() == false
  130.     end
  131.         turtle.forward()
  132.         turtle.digUp()
  133.         turtle.digDown()
  134.         turtle.turnLeft()
  135. end
  136.  
  137. for x = 1, 67 do
  138.     if turtle.detect() == true then
  139.         repeat
  140.         turtle.dig()
  141.         sleep(0.25)
  142.         until
  143.         turtle.detect() == false
  144.     end
  145.     turtle.forward()
  146.     turtle.digUp()
  147.     turtle.digDown()
  148. end
  149.  
  150. for x = 1, 1 do
  151.     turtle.turnLeft()
  152.     turtle.forward()
  153.     turtle.forward()
  154.     for i = 4,16 do
  155.         turtle.select(i)
  156.         turtle.dropDown()
  157.     end
  158.     turtle.select(1)
  159. end
  160.  
  161. for x = 1, 1 do
  162.     turtle.forward()
  163.     turtle.forward()
  164.     turtle.turnLeft()
  165. end
  166.  
  167. for x = 1, 32 do
  168.     turtle.forward()
  169. end
  170.  
  171. for x = 1, 1 do
  172.     turtle.select(3)
  173.     turtle.digDown()
  174.     turtle.placeDown()
  175.     turtle.forward()
  176.     turtle.forward()
  177.     turtle.digDown()
  178.     turtle.placeDown()
  179.     turtle.turnLeft()
  180. end
  181.  
  182. for x = 1, 4 do
  183.     turtle.forward()
  184. end
  185.  
  186. for x = 1, 1 do
  187.     turtle.turnLeft()
  188.     turtle.digDown()
  189.     turtle.placeDown()
  190.     turtle.forward()
  191.     turtle.forward()
  192.     turtle.digDown()
  193.     turtle.placeDown()
  194. end
  195.  
  196. for x = 1, 32 do
  197.     turtle.forward()
  198. end
  199.  
  200. for x = 1, 1 do
  201.     turtle.turnLeft()
  202.     turtle.forward()
  203.     turtle.forward()
  204.     turtle.turnRight()
  205. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top