Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function display()
- local monitor = peripheral.find("monitor")
- local modem = peripheral.find("modem")
- rednet.open("left")
- monitor.clear()
- while true do
- local sender, message, protocol = rednet.receive("miners")
- if(sender == 11) then
- monitor.setCursorPos(1,1)
- else
- monitor.setCursorPos(1,sender + 1)
- end
- monitor.write(message)
- end
- end
- function checkConnection()
- while true do
- rednet.broadcast(" ", "failsafe")
- end
- end
- parallel.waitForAll(display, checkConnection)
Add Comment
Please, Sign In to add comment