Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turbines = { peripheral.find("BigReactors-Turbine") }
- reactor = peripheral.find("BigReactors-Reactor")
- mon = peripheral.find("monitor")
- while true do
- mon.clear()
- local totalRF = 0
- for i = 1, #turbines do
- mon.setCursorPos(1, i)
- mon.write("Turbine "..i.." RPM: "..tostring(turbines[i].getRotorSpeed()))
- mon.write(" || ")
- mon.write("Power Produced: "..tostring(turbines[i].getEnergyProducedLastTick()))
- totalRF = totalRF + turbines[i].getEnergyProducedLastTick()
- end
- mon.setCursorPos(1, #turbines + 2)
- mon.write("Reactor temp: "..tostring(reactor.getCasingTemperature()).." || Total Energy Made: "..totalRF)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment