Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- w = peripheral.wrap("bottom")
- p = peripheral.wrap("top")
- function msg()
- w.open(1)
- local event, modemSide, senderChannel,
- replyChannel, message, senderDistance = os.pullEvent("modem_message")
- p.clear()
- p.setTextScale(3)
- p.write(message)
- end
- while true do
- msg()
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement