Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local r = peripheral.wrap("BigReactors-Reactor_0")
- local mon = peripheral.wrap("monitor_0")
- local reactorOnline = r.getActive()
- local energyProduction = r.getEnergyProducedLastTick()
- mon.clear()
- --Reactor Online
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.white)
- mon.write("Active: ")
- if reactorOnline then
- mon.setTextColor(colors.lime)
- else
- mon.setTextColor(colors.red)
- end
- mon.write(r.getActive())
- --RF/t Production
- mon.setCursorPosition(1,2)
- mon.setTextColor(colors.white)
- mon.write("RF/t: ")
- if energyProduction <= 0 then
- mon.setTextColor(colors.red)
- else
- mon.setTextColor(colors.lime)
- end
- mon.write(math.floor(energyProduction).." RF/t")
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement