Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.wrap( "back" )
- write("pocket")
- rednet.open("back")
- continue = true
- monitor = nil
- function attackInfinite()
- write("Attacking forever, ctrl+T to stop")
- if pocket then
- else
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.write("Attacking forever,")
- monitor.setCursorPos(1,2)
- monitor.write("ctrl+T to stop")
- end
- while continue do
- rednet.broadcast("attack")
- sleep(0)
- end
- end
- while continue do
- write("send a command to the turtles : ")
- command = read()
- if command == "attack" then
- attackInfinite()
- end
- rednet.broadcast(command)
- end
Advertisement
Add Comment
Please, Sign In to add comment