View difference between Paste ID: wqQBX1Lv and kcweqDxq
SHOW: | | - or go back to the newest paste.
1-
local t1 = peripheral.wrap("BigReactors-Turbine_0")
1+
local cell = peripheral.wrap("right")
2-
local t2 = peripheral.wrap("BigReactors-Turbine_1")
2+
local m = peripheral.wrap("monitor_2")
3-
local m = peripheral.wrap("monitor_0")
3+
local energy = 0
4-
local status1 = ""
4+
local energyMax = 0
5-
local status2 = ""
5+
6-
local engaged1 = ""
6+
7-
local engaged2 = ""
7+
8-
local rpm1 = 0
8+
	energy = cell.getEnergyStored()
9-
local rpm2 = 0
9+
	energy = energy/1000000
10-
local energy1 = 0
10+
	energyMax = cell.getMaxEnergyStored
11-
local energy2 = 0
11+
	ebergyMax = energyMax/1000000
12-
local energyProd1 = 0
12+
13-
local energyProd2 = 0
13+
14
15
	m.setCursorPos(1,1)
16
	m.setTextColor(colors.cyan)
17-
	local status1 = "Offline"
17+
	m.write("Energy Core Information")
18-
	local status2 = "Offline"
18+
19-
	local engaged1 = "Not Engaged"
19+
20-
	local engaged2 = "Not Engaged"
20+
21-
	energyProd1 = t1.getEnergyProducedLastTick()
21+
	m.write("Energy Stored: ")
22-
	energyProd2 = t2.getEnergyProducedLastTick()
22+
23-
	energy1 = t1.getEnergyStored()
23+
24-
	energy2 = t1.getEnergyStored()
24+
	m.write(..energy " mRF")
25-
	rpm1 = t1.getRotorSpeed()
25+
26-
	rpm2 = t1.getRotorSpeed()
26+
27-
	if t1.getInductorEngaged() then engaged1 = "Engaged" end
27+
28-
	if t2.getInductorEngaged() then engaged2 = "Engaged" end
28+
	m.write("Storage Cap: ")
29-
	if t1.getActive() then status1 = "Online" end
29+
30-
	if t2.getActive() then status2 = "Online" end
30+
31
	m.write(..energyMax "mRF")
32
33
	--Redo every 0.1 sec.--
34
	os.sleep(0.1)
35-
	--Turbine 1--
35+