Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local proto = "killbotcontroller"
- rednet.open("right")
- local toggled = false
- local checking = false
- while true do
- local _, message = rednet.receive(proto)
- if message == 'true' then
- term.clear()
- print('KILLBOT ACTIVE')
- turtle.attack()
- else
- print('KILLBOT INACTIVE')
- os.sleep(1)
- term.clear()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement