Red_Fog18

Extreme Reactor Turbine auto run program

Aug 22nd, 2025
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | Gaming | 0 0
  1. local turb = peripheral.wrap("BigReactors-Turbine_2")
  2. while true do
  3.     term.clear()
  4.     term.setCursorPos(1,1)
  5.     print(string.format("%.2f", turb.getRotorSpeed()), "RPM")
  6.     print(string.format("%.2fM",(turb.getEnergyProducedLastTick()/1000000)), "FE/T")
  7.    if (turb.getRotorSpeed()  >= 1800) then
  8.         print("1800 RPM reached engageing coils!")
  9.         turb.setInductorEngaged(true)
  10.         sleep(10)
  11.         end
  12.                 sleep(2)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment