Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- if(#tArgs ~= 3) then
- print("Usage: doTunnel <length> <amount> <spacing>")
- end
- function go()
- turtle.digDown()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- end
- function tunnel(amount)
- for i=0,amount do
- go()
- end
- end
- local size,inter, times
- size = tArgs[1]
- inter = tArgs[3]
- times = tArgs[2]
- for i=0,times do
- tunnel(size)
- turtle.turnLeft()
- tunnel(inter)
- turtle.turnLeft()
- tunnel(size)
- turtle.turnRight()
- tunnel(inter)
- turtle.turnRight()
- end
- turtle.turnRight()
- tunnel(size*(2+inter))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement