View script.lua
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") | |
if reactor.getEnergyStored() <=low then | |
reactor.setActive(true) | |
end | |