Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modemSide = "top" -- Replace "top" with the side where the modem is connected
- rednet.open(modemSide)
- while true do
- local senderID, message = rednet.receive()
- if senderID and message then
- local decodedMessage = textutils.unserialize(message)
- if decodedMessage then
- print(decodedMessage)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement