Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Tunneldistance
- distance = ...
- if not distance then
- distance = 50
- else
- distance = tonumber(distance)
- end
- local move = require("move")
- -- turns into tunnel or back out in starting direction
- function takeTurn()
- if tunnelSide == "left" then
- turtle.turnLeft()
- else
- turtle.turnRight()
- end
- end
- function tunnelRow()
- end
- --tunnel 3x3 for (start left bottom one block outside tunnel)
- function buildTunnel()
- for cnt = 1, distance, 1 do
- move.Forward()
- if cnt % 2 == 1 then
- turtle.turnRight()
- move.Up()
- move.Up()
- move.Forward()
- move.Down()
- move.Down()
- move.Forward()
- move.Up()
- move.Up()
- turtle.turnLeft()
- else
- turtle.turnLeft()
- move.Down()
- move.Down()
- move.Forward()
- move.Up()
- move.Up()
- move.Forward()
- move.Down()
- move.Down()
- turtle.turnRight()
- end
- end
- end
- buildTunnel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement