Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x =
- local y =
- local dx = 0
- local dy = 0
- local state = 1
- while dy < y do
- while dx < x do
- if not turtle.forward() then
- turtle.dig()
- else
- dx = dx + 1
- turtle.digUp()
- turtle.digDown()
- end
- end
- dx = 0
- if state == 1 then
- turtle.turnRight()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnLeft()
- end
- state = state*-1
- dx = 0
- end
- dy = dy +1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement