Advertisement
Guest User

receive

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