Advertisement
DYankee

Listen

Mar 18th, 2022 (edited)
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. local modem = peripheral.find("modem")
  2. modem.open(100)
  3.  
  4. while true do
  5.     local event, side ,channel, replyChannel, message, distance = os.pullEvent("modem_message")
  6.     print(message .. " sent from: " .. replyChannel)
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement