SHOW:
|
|
- or go back to the newest paste.
1 | mon1 = peripheral.wrap("left") | |
2 | mon2 = peripheral.wrap("monitor_2") | |
3 | reactor1 = peripheral.wrap("BigReactors-Reactor_10") | |
4 | ||
5 | function getStatus(reactor) | |
6 | if reactor.getActive() then | |
7 | return "Online" | |
8 | else | |
9 | return "Offline" | |
10 | end | |
11 | end | |
12 | ||
13 | while true do | |
14 | mon1.clear() | |
15 | mon1.setTextScale(2) | |
16 | mon1.setCursorPos(1,1) | |
17 | mon1.write("Reactor 1") | |
18 | mon1.setCursorPos(1,2) | |
19 | mon1.write("Status: ") | |
20 | mon1.setTextColor(colors.lightBlue) | |
21 | mon1.write(getStatus(reactor1)) | |
22 | mon1.setTextColor(colors.white) | |
23 | mon1.setCursorPos(1,4) | |
24 | mon1.write("Energy out: "..math.floor(reactor1.getEnergyProducedLastTick()*10)*0.1 .." RF/t") | |
25 | mon1.setCursorPos(1,5) | |
26 | - | mon1.write("Core Temperature: "..math.floor(reactor1.getCasingTemperature()*10)*0.1 .." *C") |
26 | + | mon1.write("Core Temperature: "..math.floor(reactor1.getCasingTemperature()*10)*0.1 .." °C") |
27 | mon1.setCursorPos(1,6) | |
28 | ||
29 | ||
30 | sleep(1) | |
31 | end |