Ferruccioboss

Minecraft>BaseMonitor

Jun 1st, 2015
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. rednet.open("right")
  2. local mon
  3. mon = peripheral.wrap("left")
  4. mon.clear()
  5.  
  6. function startW()
  7.     mon.setCursorPos(5,3)
  8.     mon.setTextScale(1)
  9.     mon.write("Johnson Space Center")
  10. end
  11.  
  12. startW()
  13.  
  14. while true do
  15.         event, id, text = os.pullEvent()
  16.         if event == "rednet_message" then
  17.                 if id == 24 then
  18.             mon.clear()
  19.             if text == "rst" then
  20.                 startW()
  21.             else
  22.                 mon.setCursorPos(1,1)
  23.                 mon.setTextScale(5)
  24.                 mon.write(text)
  25.             end
  26.         end
  27.         end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment