Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turn()
- do
- turtle.attack()
- turtle.turnLeft()
- turtle.attack()
- T=T+1 print(T)
- end
- end
- function move()
- if T==4 then
- turtle.forward()
- T=0 print(T)
- M=M+1
- end
- end
- T=0
- M=0
- function spin()
- if M==9 then
- turtle.turnLeft()
- turtle.turnLeft()
- M=0
- end
- end
- R=(redstone.getInput ("back"))
- while R do
- turn()
- sleep(.5)
- move()
- sleep(.5)
- spin()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement