User9684

Killbot turtle

Nov 19th, 2022 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local proto = "killbotcontroller"
  2. rednet.open("right")
  3.  
  4. local toggled = false
  5. local checking = false
  6.  
  7. while true do
  8. local _, message = rednet.receive(proto)
  9. if message == 'true' then
  10. term.clear()
  11. print('KILLBOT ACTIVE')
  12. turtle.attack()
  13. else
  14. print('KILLBOT INACTIVE')
  15. os.sleep(1)
  16. term.clear()
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment