Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local turb = peripheral.wrap("BigReactors-Turbine_2")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print(string.format("%.2f", turb.getRotorSpeed()), "RPM")
- print(string.format("%.2fM",(turb.getEnergyProducedLastTick()/1000000)), "FE/T")
- if (turb.getRotorSpeed() >= 1800) then
- print("1800 RPM reached engageing coils!")
- turb.setInductorEngaged(true)
- sleep(10)
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment