Advertisement
popatop15

Untitled

Oct 24th, 2020 (edited)
2,420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local senderId = 0
  2. local m = peripheral.wrap("top")
  3.  
  4. rednet.open("back")
  5.  
  6. m.setCursorPos(1,1)
  7. m.setTextScale(0.7)
  8. m.clear()
  9.  
  10. while true do
  11.     local id, status = rednet.receive()
  12.     if id == senderId then
  13.         m.setCursorPos(1,1)
  14.         m.write("Turbine status ... " .. status.turbine.status)
  15.         m.setCursorPos(1,2)
  16.         m.write("Reactor status ... " .. status.reactor.status)
  17.     end
  18.     sleep(2)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement