This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true do | |
local reactor = peripheral.warp("BigReactors-Reactor_0") | |
local low = 500000 | |
local high = 9000000 | |
local mon = peripheral.wrap("monitor_0") | |
mon.clear() | |
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.blue) | |
mon.write("Active: ") | |
mon.setTextColor(colors.lime) | |
mon.write(reactor.getActive()) | |
mon.setCursorPos(1,2) | |
mon.setTextColor(colors.blue) | |
mon.write("RF/T: ") | |
mon.setTextColor(colors.lime) | |
mon.write(math.floor(reactor.getEnergyProducedLastTick())) | |
mon.setCursorPos(1,3) | |
mon.setTextColor(colors.blue) | |
mon.write("RF Stored: ") | |
mon.setTextColor(colors.lime) | |
mon.write(math.floor(reactor.getEnergyStored())) | |
mon.setCursorPos(1,4) | |
mon.setTextColor(colors.blue) | |
mon.write("Casing Heat: ") | |
mon.setTextColor(colors.lime) | |
mon.write(math.floor(reactor.getCasingTemperature())) | |
mon.setCursorPos(1,5) | |
mon.setTextColor(colors.blue) | |
mon.write("Fuel Heat: ") | |
mon.setTextColor(colors.lime) | |
mon.write(math.floor(reactor.getFuelTemperature())) | |
sleep(5) | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment