Advertisement
djgaven588

Rednet Reactor Receiver

Dec 10th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. rednet.open("top")
  2. p = peripheral.wrap("left")
  3.  
  4. while true do
  5. senderId, msg, protocall = rednet.receive()
  6. if protocall == "Reactor" then
  7. if msg == "E1" then
  8. p.setActive(true)
  9. end
  10. if msg == "E2" then
  11. p.setActive(true)
  12. end
  13. if msg == "E3" then
  14. p.setActive(true)
  15. end
  16. if msg == "E4" then
  17. p.setActive(true)
  18. end
  19. if msg == "DAll" then
  20. p.setActive(false)
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement