Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("left")
- while true do
- print("Listening")
- rednet.open("right")
- event,id,message,distance = os.pullEvent("rednet_message")
- print(id)
- if id == 5 then
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.write(message)
- end
- rednet.close("right")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement