View difference between Paste ID: KNxSAFRv and iMsH5EbV
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_1")
3+
  local mon = peripheral.wrap("monitor_0")
4
  mon.clear()
5
6
  mon.setTextScale(2)
7-
  --mon.setCursorPos(1,1)
7+
8-
  --mon.setTextColor(colors.white)
8+
9-
  --mon.write("Reaktor #: ")
9+
10-
  --mon.setTextColor(colors.lime)
10+
11-
  --mon.write("1")
11+
12
  mon.write("Reaktor aktiv: ")
13
  if reactor1.getActive() == true then
14
    mon.setTextColor(colors.lime)
15-
  mon.write("Aktiv: ")
15+
    mon.write("Ja")
16
  else
17-
  mon.write(reactor1.getActive())
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(math.floor(reactor1.getCasingTemperature()))
23+
24
  mon.setTextColor(colors.lime)
25
  mon.write(math.floor(reactor1.getTemperature()))
26
27-
  mon.write("Fuel Heat: ")
27+
28
  mon.setTextColor(colors.white)
29-
  mon.write(math.floor(reactor1.getFuelTemperature()))
29+
  mon.write("Control-Rods: ")
30
  mon.setTextColor(colors.lime)
31
  mon.write(math.floor(reactor1.getNumberOfControlRods()))
32
33
  mon.setCursorPos(1,6)
34
  mon.setTextColor(colors.white)
35
  mon.write("Gespeicherte Energie: ")
36
  if math.floor(reactor1.getEnergyStored()) < 10000 then
37
    mon.setTextColor(colors.red)
38
  else
39
    mon.setTextColor(colors.lime)
40
  end
41
  mon.write(math.floor(reactor1.getEnergyStored()))
42
43
  mon.setCursorPos(1,7)
44
  mon.setTextColor(colors.white)
45
  mon.write("Verschwendung in mB: ")
46
  if math.floor(reactor1.getWasteAmount()) > 100 then
47
    mon.setTextColor(colors.red)
48
  else
49
    mon.setTextColor(colors.lime)
50
  end
51
  mon.write(math.floor(reactor1.getWasteAmount()))
52
53
  if math.floor(reactor1.getEnergyStored()) < 10000000 then
54
    reactor1.setAllControlRodLevels(50)
55
  else
56
    reactor1.setAllControlRodLevels(95)
57
  end
58
  -- End Reactor 1
59
60
   sleep(5)
61
end