Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args={...}
- z=tonumber(args[1])
- x=tonumber(args[2])
- side=1
- function place()
- for i=1,z do
- turtle.placeDown()
- turtle.forward()
- end
- end
- for i2=1,x do
- place()
- if side==1 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- side=2
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- side=1
- end
- end
Add Comment
Please, Sign In to add comment