Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Receiver Program
- local monitorSide = "top"
- local modemSide = "right"
- local noteblockSide = "left"
- local mon = peripheral.wrap(monitorSide)
- rednet.open(modemSide)
- while true
- do
- local id, message = rednet.receive()
- redstone.setOutput(noteblockSide)
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("From: "..id)
- mon.setCursorPos(1,2)
- mon.write("Message: "..message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement