Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor = peripheral.wrap("BigReactors-Reactor_0")
- local turbine = peripheral.wrap("BigReactors-Turbine_0")
- while true do
- if turbine.getEnergyStored() > 50000 then
- turbine.setActive(false)
- elseif turbine.getEnergyStored() < 50000 then
- turbine.setActive(true)
- end
- -- Error fix
- os.queueEvent("event");
- os.pullEvent();
- end
Advertisement
Add Comment
Please, Sign In to add comment