SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
| |
| 3 | local mon = peripheral.wrap("monitor_0")
| |
| 4 | mon.clear() | |
| 5 | ||
| 6 | mon.setTextScale(2) | |
| 7 | ||
| 8 | -- Begin Reactor 1 | |
| 9 | ||
| 10 | mon.setCursorPos(1,1) | |
| 11 | mon.setTextColor(colors.white) | |
| 12 | mon.write("Reaktor aktiv: ")
| |
| 13 | if reactor1.getActive() == true then | |
| 14 | mon.setTextColor(colors.lime) | |
| 15 | mon.write("Ja")
| |
| 16 | else | |
| 17 | mon.setTextColor(colors.red) | |
| 18 | mon.write("Nein")
| |
| 19 | end | |
| 20 | ||
| 21 | mon.setCursorPos(1,4) | |
| 22 | mon.setTextColor(colors.white) | |
| 23 | - | mon.write("Casing Heat: ")
|
| 23 | + | mon.write("Temperatur: ")
|
| 24 | mon.setTextColor(colors.lime) | |
| 25 | mon.write(math.floor(reactor1.getTemperature())) | |
| 26 | mon.write(" C")
| |
| 27 | ||
| 28 | mon.setCursorPos(1,5) | |
| 29 | mon.setTextColor(colors.white) | |
| 30 | mon.write("Control-Rods: ")
| |
| 31 | mon.setTextColor(colors.lime) | |
| 32 | mon.write(math.floor(reactor1.getNumberOfControlRods())) | |
| 33 | ||
| 34 | mon.setCursorPos(1,6) | |
| 35 | mon.setTextColor(colors.white) | |
| 36 | mon.write("Gespeicherte Energie: ")
| |
| 37 | if math.floor(reactor1.getEnergyStored()) < 10000 then | |
| 38 | mon.setTextColor(colors.red) | |
| 39 | else | |
| 40 | mon.setTextColor(colors.lime) | |
| 41 | end | |
| 42 | mon.write(math.floor(reactor1.getEnergyStored())) | |
| 43 | ||
| 44 | mon.setCursorPos(1,7) | |
| 45 | mon.setTextColor(colors.white) | |
| 46 | mon.write("Verschwendung in mB: ")
| |
| 47 | if math.floor(reactor1.getWasteAmount()) > 100 then | |
| 48 | mon.setTextColor(colors.red) | |
| 49 | else | |
| 50 | mon.setTextColor(colors.lime) | |
| 51 | end | |
| 52 | mon.write(math.floor(reactor1.getWasteAmount())) | |
| 53 | - | if math.floor(reactor1.getEnergyStored()) < 10000000 then |
| 53 | + | |
| 54 | mon.setCursorPos(1,8) | |
| 55 | ||
| 56 | - | reactor1.setAllControlRodLevels(95) |
| 56 | + | if math.floor(reactor1.getEnergyStored()) < 999999 then |
| 57 | reactor1.setAllControlRodLevels(0) | |
| 58 | mon.setTextColor(colors.white) | |
| 59 | mon.write("Control-Rods Level: ")
| |
| 60 | mon.setTextColor(colors.red) | |
| 61 | mon.write("0")
| |
| 62 | else | |
| 63 | reactor1.setAllControlRodLevels(90) | |
| 64 | mon.setTextColor(colors.white) | |
| 65 | mon.write("Control-Rods Level: ")
| |
| 66 | mon.setTextColor(colors.lime) | |
| 67 | mon.write("90")
| |
| 68 | end | |
| 69 | -- End Reactor 1 | |
| 70 | ||
| 71 | sleep(5) | |
| 72 | end |