XSilent_DevilX

Block Testing - Computer

May 12th, 2021 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. rednet. open("bottom")
  2. monitor = peripheral.wrap("top")
  3. monitor.clear()
  4. monitor.setCursorPos(1,1)
  5. monitor.setBackgroundColour((colours.black))
  6. PC = 17
  7. function checkFloor()
  8. monitor.setCursorPos(2,2)
  9. while true do
  10.     event, senderID, message, distance = os.pullEvent("rednet_message")
  11.     if senderID == PC then
  12.     monitor.write("Floor")
  13.     monitor.setCursorPos(4,4)
  14.     monitor.write(message)
  15.     end
  16. end
  17. end
  18. checkFloor()
Add Comment
Please, Sign In to add comment