Advertisement
ElijahCrafter

Untitled

Mar 3rd, 2024 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local modemSide = "top" -- Replace "top" with the side where the modem is connected
  2. rednet.open(modemSide)
  3.  
  4. while true do
  5.     local senderID, message = rednet.receive()
  6.     if senderID and message then
  7.         local decodedMessage = textutils.unserialize(message)
  8.         if decodedMessage then
  9.             print(decodedMessage)
  10.         end
  11.     end
  12. end
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement