Posted 08 September 2014 - 08:05 PM
Hey im on the way to build a computer screen their show the amount of in the resonent cell but i cant get it to work. The reactor works just fine but not the cell.
local turbine = peripheral.wrap("BigReactors-Turbine_0")
local mon = peripheral.wrap("right")
reso1 = peripheral.wrap("cofh_thermalexpansion_energycell_0")
function reactoractive()
mon.clear()
mon.setCursorPos(1,1)
mon.setTextColor(colors.white)
term.setBackgroundColor(colors.black)
mon.write("Reactor: ")
if reactor.getActive() == true then
mon.setTextColor( colors.lime )
mon.write( "online" )
else
mon.setTextColor( colors.red )
mon.write( "Offline" )
end
end
function reso()
stored = reso1.getEnergyStored()
mon.setCursorPos(1,2)
mon.write("energy", stored)
end
while true do
sleep(.1)
reactoractive()
reso()
end
Hope your guys can help me
Spoiler
local reactor = peripheral.wrap("BigReactors-Reactor_0")local turbine = peripheral.wrap("BigReactors-Turbine_0")
local mon = peripheral.wrap("right")
reso1 = peripheral.wrap("cofh_thermalexpansion_energycell_0")
function reactoractive()
mon.clear()
mon.setCursorPos(1,1)
mon.setTextColor(colors.white)
term.setBackgroundColor(colors.black)
mon.write("Reactor: ")
if reactor.getActive() == true then
mon.setTextColor( colors.lime )
mon.write( "online" )
else
mon.setTextColor( colors.red )
mon.write( "Offline" )
end
end
function reso()
stored = reso1.getEnergyStored()
mon.setCursorPos(1,2)
mon.write("energy", stored)
end
while true do
sleep(.1)
reactoractive()
reso()
end
Hope your guys can help me