Advertisement
Lanzr

tut.lua

Oct 18th, 2023 (edited)
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local modem = peripheral.wrap("left")
  2. modem.open(1)  -- Open channel 3 so that we can listen on it
  3.  
  4. local function netCheck()
  5.     while 1 do
  6.         local event, modemSide, senderChannel,
  7.   replyChannel, message, senderDistance = os.pullEvent("modem_message")
  8.         print(message)
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement