Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("back")
- modem.open(1)--Open channel 3 so that we can listen on it
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- if event == "modem_message" then
- print(message)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement