Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p0 = peripheral.wrap("BigReactors-Turbine_0")
- local p1 = peripheral.wrap("BigReactors-Turbine_1")
- local p2 = peripheral.wrap("BigReactors-Turbine_2")
- local p3 = peripheral.wrap("BigReactors-Turbine_3")
- local p4 = peripheral.wrap("BigReactors-Turbine_4")
- local p5 = peripheral.wrap("BigReactors-Turbine_5")
- local p6 = peripheral.wrap("BigReactors-Turbine_6")
- local p7 = peripheral.wrap("BigReactors-Turbine_7")
- local p8 = peripheral.wrap("BigReactors-Turbine_8")
- local p9 = peripheral.wrap("BigReactors-Turbine_9")
- local p10 = peripheral.wrap("BigReactors-Turbine_10")
- local p11 = peripheral.wrap("BigReactors-Turbine_11")
- local p12 = peripheral.wrap("BigReactors-Turbine_12")
- local p13 = peripheral.wrap("BigReactors-Turbine_13")
- local p14 = peripheral.wrap("BigReactors-Turbine_14")
- local p15 = peripheral.wrap("BigReactors-Turbine_15")
- local mon = peripheral.wrap("left")
- while true do
- local TotalEnergie = p0.getEnergyProducedLastTick()+p1.getEnergyProducedLastTick()+p2.getEnergyProducedLastTick()+p3.getEnergyProducedLastTick()+p4.getEnergyProducedLastTick()+p5.getEnergyProducedLastTick()+p6.getEnergyProducedLastTick()+p7.getEnergyProducedLastTick()+p8.getEnergyProducedLastTick()+p9.getEnergyProducedLastTick()+p10.getEnergyProducedLastTick()+p11.getEnergyProducedLastTick()+p12.getEnergyProducedLastTick()+p13.getEnergyProducedLastTick()+p14.getEnergyProducedLastTick()+p15.getEnergyProducedLastTick()
- mon.clear()
- mon.setTextColor(colors.red)
- mon.setCursorPos(1,1)
- mon.write("Information:")
- mon.setCursorPos(1,3)
- mon.setTextColor(colors.white)
- mon.write("Regime des Turbines: ")
- mon.setTextColor(8)
- mon.setCursorPos(1,4)
- mon.write("Turbine 1: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p0.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,5)
- mon.write("Turbine 2: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p1.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,6)
- mon.write("Turbine 3: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p2.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,7)
- mon.write("Turbine 4: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p3.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,8)
- mon.write("Turbine 5: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p4.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,9)
- mon.write("Turbine 6: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p5.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,10)
- mon.write("Turbine 7: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p6.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,11)
- mon.write("Turbine 8: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p7.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,12)
- mon.write("Turbine 9: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p8.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,13)
- mon.write("Turbine 10: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p9.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,14)
- mon.write("Turbine 11: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p10.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,15)
- mon.write("Turbine 12: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p11.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,16)
- mon.write("Turbine 13: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p12.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,17)
- mon.write("Turbine 14: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p13.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,18)
- mon.write("Turbine 15: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p14.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setTextColor(8)
- mon.setCursorPos(1,19)
- mon.write("Turbine 16: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(p15.getRotorSpeed()))
- mon.setTextColor(colors.white)
- mon.write(" rpm")
- mon.setCursorPos(1,21)
- mon.setTextColor(colors.white)
- mon.write("Energie: ")
- mon.setTextColor(8)
- mon.setCursorPos(1,22)
- mon.write("Turbine Production: ")
- mon.setTextColor(colors.green)
- mon.write(tostring(math.floor(TotalEnergie)))
- mon.setTextColor(colors.white)
- mon.write(" RF/t")
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement