popatop15

Untitled

Oct 24th, 2020 (edited)
1,331
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(string.rep(" ", 3).."Stored RF   ... "..status.turbine.rfStored)
  17.         m.setCursorPos(1,3)
  18.         m.write(string.rep(" ", 3).."RF Per Tick ... "..math.floor(status.turbine.rfPerTick))
  19.         m.setCursorPos(1,4)
  20.         m.write(string.rep(" ", 3).."Rotor Speed ... "..math.floor(status.turbine.rpm).."RPM")
  21.         m.setCursorPos(1,6)
  22.         m.write("Reactor status ... " .. status.reactor.status)
  23.         m.setCursorPos(1,7)
  24.         m.write(string.rep(" ", 3).."Fuel Level  ... "..status.reactor.fuelPercent.."%")
  25.     end
  26.     sleep(2)
  27. end
RAW Paste Data