yurtle

ModemRecieve

Aug 28th, 2021 (edited)
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local modem = peripheral.wrap("top")
  2.  
  3. local sendChannel = 43
  4. local recieveChannel = 42
  5.  
  6. modem.open(recieveChannel)
  7.  
  8. local speaker = peripheral.wrap("right")
  9.  
  10. while true do
  11. local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  12.  
  13. shell.run(message)
  14. end
  15.  
Add Comment
Please, Sign In to add comment