Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("right")
- while true do
- modem.open(6)
- local event, modemSide, senderChannel, replyChannel, reactor, senderDistance = os.pullEvent("modem_message")
- if reactor == 1 then
- rs.setOutput("top",true)
- else
- rs.setOutput("top",false)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement