Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created February 5, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/08cef0e16a19ec9e1152 to your computer and use it in GitHub Desktop.
Save anonymous/08cef0e16a19ec9e1152 to your computer and use it in GitHub Desktop.
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