Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rotor1 = peripheral.wrap("BigReactors-Turbine_2")
- while true do
- if rotor1.getEnergyStored() > 900000 then
- rotor1.setInductorEngaged(false)
- if rotor1.getRotorSpeed() < 1700 then
- rotor1.setFluidFlowRateMax(50)
- elseif rotor1.getRotorSpeed() > 1750 then
- rotor1.setFluidFlowRateMax(0)
- end
- elseif rotor1.getEnergyStored() < 300000 then
- rotor1.setInductorEngaged(true)
- if rotor1.getRotorSpeed() < 1750 then
- rotor1.setFluidFlowRateMax(1400)
- elseif rotor1.getRotorSpeed() > 1825 then
- rotor1.setFluidFlowRateMax(1250)
- end
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement