Guest User

TASA

a guest
Nov 29th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. print("Running tunnel operation")
  2. turtle.select(16)
  3. while true do
  4.  turtle.dig()
  5.  turtle.forward()
  6.  turtle.turnRight()
  7.  turtle.dig()
  8.  turtle.forward()
  9.  turtle.dig()
  10.  turtle.forward()
  11.  turtle.digUp()
  12.  turtle.up()
  13.  turtle.turnLeft()
  14.  turtle.turnLeft()
  15.  turtle.dig()
  16.  turtle.forward()
  17.  turtle.dig()
  18.  turtle.forward()
  19.  turtle.turnRight()
  20.  turtle.down()
  21.  if turtle.getItemCount( turtle.getSelectedSlot() ) > 0 then
  22.    turtle.turnLeft()
  23.    turtle.turnLeft()
  24.    i = 1
  25.    while i == 1 true do
  26.     turtle.forward()
  27.     if turtle.detect() then
  28.      i = 0
  29.      turtle.turnRight()
  30.      turtle.turnRight()
  31.      o = 1
  32.      while o == 1 true do
  33.       turtle.forward()
  34.        if turtle.detect() then
  35.         o = 0
  36.         z = 1
  37.         while z < 16 true do
  38.          turtle.select(z)
  39.          turtle.drop()
  40.          z = z + 1
  41.         end
  42.         turtle.turnLeft()
  43.         turtle.turnLeft()
  44.         x = 1
  45.         while x == 1 true do
  46.          turtle.forward()
  47.          if turtle.detect() then
  48.           x = 0
  49.          end
  50.         end
  51. end
  52. end
  53. end
  54. end
  55. end
  56. end
Advertisement
Add Comment
Please, Sign In to add comment