Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --3x3 tunnel Digger
- --By: farsidejake
- local function digy()
- while turtle.detect() == true do
- turtle.dig()
- os.sleep(0.5)
- end
- end
- local function ahead()
- digy()
- --os.sleep(2)
- turtle.forward()
- end
- local function sides()
- turtle.turnLeft()
- digy()
- turtle.turnRight()
- turtle.turnRight()
- digy()
- turtle.turnLeft()
- -- turtle.digUp()
- end
- local function torch()
- end
- --Main Program
- local tArgs = { ... }
- -- Check if I have too many args or too fue
- local length = tArgs[1]
- for i = 1, length do
- ahead()
- for x = 1, 3 do
- sides()
- if x < 3 then
- turtle.digUp()
- turtle.up()
- end
- end
- turtle.down()
- turtle.down()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement