Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- p = peripheral.wrap("left")
- while true do
- senderId, msg, protocall = rednet.receive()
- if protocall == "Reactor" then
- if msg == "E1" then
- p.setActive(true)
- end
- if msg == "E2" then
- p.setActive(true)
- end
- if msg == "E3" then
- p.setActive(true)
- end
- if msg == "E4" then
- p.setActive(true)
- end
- if msg == "DAll" then
- p.setActive(false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement