Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local l = args[1]
- local w = args[2]
- function digUp()
- if turtle.detectUp() then
- repeat turtle.digUp() until turtle.up()
- digUp()
- turtle.down()
- end
- return
- end
- function dig()
- repeat turtle.dig() until turtle.forward()
- end
- for i = 1, l do
- for b = 1, w do
- dig()
- digUp()
- end
- if i % 2 ~= 0 then
- turtle.turnLeft()
- dig()
- digUp()
- turtle.turnLeft()
- else
- turtle.turnRight()
- dig()
- digUp()
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement