Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local z=1
- local x=1
- local y=1
- local times =0
- local times2 =0
- local times3 =0
- function forward()
- if not turtle.forward() then do
- turtle.dig()
- end
- end
- end
- function tunnel()
- turtle.dig()
- forward()
- turtle.digUp()
- turtle.digDown()
- end
- print("How Long?")
- times = read()
- print("How Wide?")
- times2 = read()
- print("How Tall?")
- times3 = read()
- function Row()
- if z==1 then
- for z = 1, times do
- tunnel()
- end
- for z = 2, times do
- turtle.back()
- end
- z = z+1
- else do
- for z = 2, times do
- tunnel()
- end
- for z =2, times do
- turtle.back()
- end
- end
- end
- end
- function Left()
- turtle.turnLeft()
- turtle.dig()
- tunnel()
- turtle.turnRight()
- x = x+1
- end
- if x==<times2 then do
- Row()
- Left()
- end
- else do
- row()
- end
- end
- turtle.turnRight()
- x =1
- for x =1,times2 do
- turtle.forward()
- end
- turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement