SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | - | local turbine = peripheral.wrap("BigReactors-Turbine_1")
|
| 2 | + | local turbine = peripheral.wrap("BigReactors-Turbine_0")
|
| 3 | - | local mon = peripheral.wrap("monitor_6")
|
| 3 | + | local mon = peripheral.wrap("monitor_0")
|
| 4 | mon.clear() | |
| 5 | function newLine() | |
| 6 | local _,cY= monitor.getCursorPos() | |
| 7 | monitor.setCursorPos(1,cY+1) | |
| 8 | end | |
| 9 | - | mon.write("Active: ")
|
| 9 | + | |
| 10 | -- Begin Turbine | |
| 11 | mon.setCursorPos(1,1) | |
| 12 | mon.setTextColor(colors.green) | |
| 13 | mon.write("Turbine")
| |
| 14 | newLine() | |
| 15 | mon.setTextColor(colors.white) | |
| 16 | mon.write("Aktiv: ")
| |
| 17 | mon.setTextColor(colors.lime) | |
| 18 | mon.write(turbine.getActive()) | |
| 19 | ||
| 20 | mon.setCursorPos(1,2) | |
| 21 | - | mon.write("RF Stored: ")
|
| 21 | + | |
| 22 | mon.write("RF/T: ")
| |
| 23 | mon.setTextColor(colors.lime) | |
| 24 | mon.write(math.floor(turbine.getEnergyProducedLastTick())) | |
| 25 | ||
| 26 | mon.setCursorPos(1,3) | |
| 27 | - | mon.write("Rotor Speed: ")
|
| 27 | + | |
| 28 | mon.write("RF gespeichert: ")
| |
| 29 | mon.setTextColor(colors.lime) | |
| 30 | mon.write(math.floor(turbine.getEnergyStored())) | |
| 31 | ||
| 32 | mon.setCursorPos(1,4) | |
| 33 | - | mon.write("Fluid Rate: ")
|
| 33 | + | |
| 34 | mon.write("Rotorgeschwindigkeit: ")
| |
| 35 | mon.setTextColor(colors.lime) | |
| 36 | mon.write(math.floor(turbine.getRotorSpeed())) | |
| 37 | ||
| 38 | mon.setCursorPos(1,5) | |
| 39 | mon.setTextColor(colors.white) | |
| 40 | mon.write("Durchflussrate: ")
| |
| 41 | mon.setTextColor(colors.lime) | |
| 42 | mon.write(math.floor(turbine.getInputAmount())) | |
| 43 | -- End Reactor 1 | |
| 44 | ||
| 45 | sleep(5) | |
| 46 | end |