Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
- local mon = peripheral.wrap("monitor_0")
- mon.clear()
- mon.setTextColor(colors.white)
- mon.setTextScale(1)
- mon.setCursorPos(1,1)
- mon.write("STATUS: ")
- if reactor1.getActive(true) then
- mon.setBackgroundColor(colors.lime)
- mon.write("ACTIVE")
- else
- mon.setBackgroundColor(colors.red)
- mon.write("INACTIVE")
- end
- mon.setBackgroundColor(colors.black)
- mon.setCursorPos(1,4)
- mon.write("Energy Production: " .. math.floor(reactor1.getEnergyProducedLastTick()) .. " RF/t")
- mon.setCursorPos(1,5)
- mon.write("Energy Stored: " .. math.floor(reactor1.getEnergyStored()) .. " RF")
- mon.setCursorPos(1,7)
- mon.write("Fuel Tank " .. reactor1.getFuelAmountMax() .. " mB")
- mon.setCursorPos(1,8)
- mon.write("Fuel Available: " .. math.floor(reactor1.getFuelAmount()) .. " mB")
- mon.setCursorPos(1,9)
- mon.write("Fuel Usage: " .. reactor1.getFuelConsumedLastTick() .. " mB/t")
- mon.setCursorPos(1,10)
- mon.write("Fuel Temperature: " .. math.floor(reactor1.getFuelTemperature()) .." C")
- mon.setCursorPos(1,11)
- mon.write("Casing Temperature:" .. math.floor(reactor1.getCasingTemperature()) .. " C")
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement