Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arg = {...}
- local dim = arg[1]
- for n=1,dim do
- for m=1,dim-1 do
- turtle.digDown()
- turtle.forward()
- end
- turtle.digDown()
- if math.fmod(n,2) == 0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
Add Comment
Please, Sign In to add comment