Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("right")
- if peripheral.getType("up") == 'modem' then --#Did we find a modem... Or some other peripheral?
- mon.clear()
- --print("Found Modem On Side up!")
- rednet.open("up")
- wireless = peripheral.wrap("up")
- end
- function waitForMessage(displayMessage)
- local sender, message, protocol = rednet.receive()
- if displayMessage then
- mon.clear()
- local w, h = term.getSize()
- mon.setCursorPos(1,1)
- mon.write(message)
- else
- return message
- end
- end
- while true do
- waitForMessage(true)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement