Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- M=0
- function Turn()
- if M>8
- then
- turtle.turnLeft()
- turtle.turnLeft()
- M=0 print(M)
- end
- end
- function Move()
- if M<=8
- then
- turtle.forward()
- turtle.attack()
- turtle.attack()
- M=M+1 print (M)
- end
- end
- while true do
- Turn()
- sleep(.25)
- Move()
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement