Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet. open("bottom")
- monitor = peripheral.wrap("top")
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setBackgroundColour((colours.black))
- PC = 17
- function checkFloor()
- monitor.setCursorPos(2,2)
- while true do
- event, senderID, message, distance = os.pullEvent("rednet_message")
- if senderID == PC then
- monitor.write("Floor")
- monitor.setCursorPos(4,4)
- monitor.write(message)
- end
- end
- end
- checkFloor()
Add Comment
Please, Sign In to add comment