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