Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tur = peripheral.wrap("BigReactors-Turbine_0")
- rec = peripheral.wrap("BigReactors-Reactor_0")
- mon = peripheral.wrap("top")
- maxe = 1000000
- while true do
- eng = tur.getEnergyStored()
- tick = tur.getEnergyProducedLastTick()
- act = tur.getActive()
- rpm = tur.getRotorSpeed()
- if act then
- act = "Online"
- elseif act == false then
- act = "Offline"
- end
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("TURBINE STATUS: "..act)
- mon.setCursorPos(1,3)
- mon.write("RPM: "..rpm)
- mon.setCursorPos(1,5)
- mon.write("Tick Rate: "..tick)
- mon.setCursorPos(1,7)
- mon.write("Energy Stored: "..eng.."/"..maxe)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement