Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- My Personal Big Reactors Temperature Control Script
- local turbine = peripheral.wrap("BigReactors-Turbine_0")
- turbine.setActive(true)
- -- Set Optimal RPM Speeds
- local optimalRPM = 1800
- while turbine.getActive do
- local flowRate = turbine.getFluidFlowRateMax()
- local currentRPM = turbine.getRotorSpeed()
- local highRPM = optimalRPM + 5
- local lowRPM = optimalRPM - 5
- if currentRPM >= highRPM then
- turbine.setFluidFlowMaxRate(flowRate - 1)
- elseif currentRPM <= lowRPM and flowRate < 2000 then
- turbine.setFluidFlowMaxRate(flowRate + 1)
- end
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement