local reactor
local rf
reactor = peripheral.wrap("back")
print(" Program Reactor launched ")
while true do
rf = reactor.getEnergyStored()
print("Current RF : " .. rf)
if reactor.getActive() == true then
print("Reactor is currently ON")
if rf >= 9500000 then
reactor.setActive(false)
print("===> Reactor is now OFF")
end
else
print("Reactor is currently OFF")
if rf <= 500000 then
reactor.setActive(true)
print("===> Reactor is now ON")
end
end
os.sleep(30)
print("----------------------")
end