Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- By Sebastian Hofer
- -- Version: 1.0
- reactor = peripheral.wrap("BigReactors-Reactor_0")
- mon = peripheral.wrap("monitor_0")
- low = 1000000
- high = 9000000
- term.clear()
- term.setCursorPos(1,1)
- write("Running...")
- while true do
- if reactor.getEnergyStored() <= low then
- reactor.setActive(true)
- end
- if reactor.getEnergyStored() >= high then
- reactor.setActive(false)
- end
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.white)
- mon.write("Active: ")
- mon.setTextColor(colors.lime)
- mon.write(reactor.getActive())
- mon.setCursorPos(1,2)
- mon.setTextColor(colors.white)
- mon.write("RF/T: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor.getEnergyProducedLastTick()) .. "")
- mon.setCursorPos(1,3)
- mon.setTextColor(colors.white)
- mon.write("RF Stored: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor((reactor.getEnergyStored() / 10000000) * 1000) / 10 .. " %")
- mon.setCursorPos(1,4)
- mon.setTextColor(colors.white)
- mon.write("Fuel: ")
- mon.setTextColor(colors.lime)
- fuel = reactor.getFuelAmount()
- waste = reactor.getWasteAmount()
- max = reactor.getFuelAmountMax()
- mon.write((math.floor(((fuel+waste) / max) * 1000) / 10) .. " %")
- mon.setCursorPos(1,5)
- mon.setTextColor(colors.white)
- mon.write("Heat: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor.getFuelTemperature()) .. "")
- mon.setTextColor(colors.white)
- mon.write(" / ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor.getCasingTemperature()) .. "")
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement