Advertisement
magnasiefr

Reactor Receiver

Oct 25th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local modem = peripheral.wrap("right")
  2.  
  3. while true do
  4. modem.open(6)
  5. local event, modemSide, senderChannel, replyChannel, reactor, senderDistance = os.pullEvent("modem_message")
  6.  
  7. if reactor == 1 then
  8. rs.setOutput("top",true)
  9. else
  10. rs.setOutput("top",false)
  11. end
  12.  
  13. sleep(1)
  14.  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement