Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lowEnergy = 1000000
- local highEnergy = 9500000
- local reactor = peripheral.wrap("back")
- while true do
- cellEnergy = reactor.getEnergyStored()
- if cellEnergy < lowEnergy then
- reactor.setActive(true)
- elseif cellEnergy > highEnergy then
- reactor.setActive(false)
- end
- os.sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement