SHOW:
|
|
- or go back to the newest paste.
1 | -- As written the computer is directly next to one of the stabilizers on the core (stabilizer on it's right side) | |
2 | -- a Red cage lamp is on the back (facing the stabilizer I mainly control) | |
3 | -- a green cage lamp is on the top | |
4 | -- a 3 tall, 7 wide monitor is below the computer (just regular monitors) | |
5 | ||
6 | local core = peripheral.wrap("right") | |
7 | local monitor = peripheral.wrap("bottom") | |
8 | term.redirect(monitor) | |
9 | ||
10 | while true do | |
11 | monitor.clear() | |
12 | ||
13 | -- find("particle_generator") | |
14 | local stabilizer = core.getReactorInfo() | |
15 | ||
16 | --for _, method in pairs(stabilizer) do | |
17 | --print(method) | |
18 | --end | |
19 | print(" status: "..stabilizer.status) | |
20 | - | print(" energySaturation: "..stabilizer.energySaturation) |
20 | + | |
21 | print(" temperature: "..stabilizer.temperature) | |
22 | - | print(" fuelConversion: "..stabilizer.fuelConversion.."("..stabilizer.fuelConversion*100/stabilizer.maxFuelConversion.."%)") |
22 | + | |
23 | print(" maxFieldStrength: "..stabilizer.maxFieldStrength) | |
24 | print(" fieldDrainRate: "..stabilizer.fieldDrainRate) | |
25 | - | print(" fieldStrength%: "..stabilizer.fieldStrength*100/stabilizer.maxFieldStrength) |
25 | + | |
26 | print(" maxFuelConversion: "..stabilizer.maxFuelConversion) | |
27 | local fuelConversionPercent=stabilizer.fuelConversion*100/stabilizer.maxFuelConversion | |
28 | print(" fuelConversion: "..stabilizer.fuelConversion.."("..fuelConversionPercent.."%)") | |
29 | local energySaturationPercent=stabilizer.energySaturation*100/stabilizer.maxEnergySaturation | |
30 | print(" energySaturation: "..stabilizer.energySaturation.."("..energySaturationPercent.."%)") | |
31 | print(" maxEnergySaturation: "..stabilizer.maxEnergySaturation) | |
32 | local fieldStrengthPercent=stabilizer.fieldStrength*100/stabilizer.maxFieldStrength | |
33 | print(" fieldStrength%: "..fieldStrengthPercent) | |
34 | if (fieldStrengthPercent<51 or energySaturationPercent<51) then | |
35 | -- if it's < than some kill switch probably have it scram the reactor | |
36 | redstone.setOutput("back", not redstone.getOutput("back")) | |
37 | redstone.setOutput("top",false) | |
38 | end | |
39 | if (fieldStrengthPercent>51 and energySaturationPercent>51) then | |
40 | redstone.setOutput("back",false) | |
41 | redstone.setOutput("top",not redstone.getOutput("top")) | |
42 | end | |
43 | sleep(2) | |
44 | end |