TheCountryGamer

TunnelBridge

Nov 3rd, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. arg = {...}
  2. local length = arg[1]
  3. local placeDown = arg[2]
  4. print(length)
  5.  
  6. function layer()
  7.   turtle.dig()
  8.   turtle.forward()
  9.   for i=1, 3 do
  10.     turtle.turnLeft()
  11.     turtle.dig()
  12.     turtle.turnRight()
  13.     turtle.turnRight()
  14.     turtle.dig()
  15.     turtle.turnLeft()
  16.     turtle.digUp()
  17.     if i<3 then
  18.       turtle.up()
  19.     end
  20.   end
  21.   turtle.down()
  22.   turtle.down()
  23. --[[
  24.     turtle.select(16)
  25.     turtle.digDown()
  26.     turtle.placeDown()
  27.     turtle.turnLeft()
  28.     turtle.forward()
  29.     turtle.turnRight()
  30.     turtle.digDown()
  31.     turtle.placeDown()
  32.     turtle.turnRight()
  33.     turtle.forward()
  34.     turtle.forward()
  35.     turtle.turnLeft()
  36.     turtle.digDown()
  37.     turtle.placeDown()
  38.     turtle.turnLeft()
  39.     turtle.forward()
  40.     turtle.turnRight()
  41.   ]]
  42. end
  43.  
  44. for i=1, length do
  45.   layer()
  46.   if i<#length then
  47.     turtle.dig()
  48.   end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment