Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local serverID = 0 -- change to the id of the computer that sends the message
- local sSide = "back" -- change to the side of the monitor
- local sKey = "WRITE_THE_TEXT" -- change to whatever you want the keyword message to be
- local sText = "" -- write here the text you want on the monitor
- rednet.open("top")
- local mon = peripheral.wrap(sSide)
- if not mon then
- print("No monitor on ", sSide)
- return
- end
- term.redirect(mon)
- while true do
- local id, msg = rednet.receive()
- if id == serverID then
- if msg == sKey then
- term.clear()
- term.setCursorPos(1, 1)
- print(sText)
- end
- end
- end
Add Comment
Please, Sign In to add comment