reading energy level from redstone energy cell

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
If you have Nuclear Control why not just use the Range Trigger? Its specifically designed to turn stuff on and off based on energy levels. Energy levels that you yourself can set in the Range Trigger UI. The sensor cards work fine with both EU storage and Energy cells. And its wireless over large distances with range upgrades.
 

Azurl

New Member
Jul 29, 2019
172
0
0
Very late on replying to your question. Yes, you can use ComputerCraft to read a redstone energy cell. I see people where they said to use gates and so forth but this is very useful and can do a lot more than any gate. Here is a very simple example how to read the cell via ComputerCraft.
Code:
cell = peripheral.wrap("bottom")
cellStored = cell.getEnergyStored()
cellFull = cell.getMaxEnergyStored()
cellPercent = math.floor(100*cellStored/cellFull)

-- Using tonumber to take off the unwanted decimal
print(tonumber(cellStored))
print(cellFull)
-- Better format
print(tonumber(cellStored).."/"..cellFull.." "..cellPercent.."%")

On being more powerful than any gate, is you can use if then statements to do certain things, like change the output or input of the cell. You could have exact number matched before it does something e.g. like 20% or a specific number 134777. Hope this helped.

Better late than never, that seems like a better solution than what I had previously used. thank you :)[DOUBLEPOST=1385595047][/DOUBLEPOST]
If you have Nuclear Control why not just use the Range Trigger? Its specifically designed to turn stuff on and off based on energy levels. Energy levels that you yourself can set in the Range Trigger UI. The sensor cards work fine with both EU storage and Energy cells. And its wireless over large distances with range upgrades.

but this was for redstone energy cells, which store MJ, not EU. Nuclear control is for industrialcraft power no?
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
but this was for redstone energy cells, which store MJ, not EU. Nuclear control is for industrialcraft power no?
I suspect it might have been originally, but it also works with Energy cells(and conduits actually). You can/could also use the liquid sensors on Railcraft/Xycraft tanks.
I personally use the Range Trigger everywhere to control my energy production. There is a few pics of some of the stuff here: http://imgur.com/a/dSMKv

Two Range triggers controlling Biogas engines:
 
  • Like
Reactions: PierceSG

PierceSG

New Member
Jul 29, 2019
2,047
0
0
Am I correct to say that the Nuclear Control addon doesn't necessarily needs IC2 around to work? Standalone to say?

What about the Advanced Information Panel?
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
Am I correct to say that the Nuclear Control addon doesn't necessarily needs IC2 around to work? Standalone to say?

What about the Advanced Information Panel?
Ehm from what I can see it is dependant on IC2:
http://feed-the-beast.wikia.com/wiki/Nuclear_Control
Also all the recipes for items contain IC2 stuff, so doubt it.
Really hope it gets updated to 1.6 and the new IC2, cause its one of my favourite mods(well one of the mods I use the most).
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
Speaking of Nuclear Control does the Energy Sensor Kit work on the Redstone Energy Cell?
Probably should have specified more clearly. :p Yes the Energy sensor kit is actually what you use in the Range trigger too. And it works on both Energy cells and Conduits(Conduits actually have a storage, but why you would want to measure it I don't know. Use it as a trigger for network being powered maybe?).
 

shortybsd

New Member
Jul 29, 2019
30
0
0
Better late than never, that seems like a better solution than what I had previously used. thank you :)[DOUBLEPOST=1385595047][/DOUBLEPOST]

I use this same thing for everything, nuclear reactors, big reactors, mfsu's, redstone energy cells... It is the only flawless thing I could use where the power wouldn't flip on and off fast due to the limits of gates. 2 if statements solve everything.
Code:
if(mfsuEnergy>=9000000)
--turn off reactor
elseif(mfsuEnergy<=1000000)
--power on the reactor
end
very basic but very effective as I have a big window from where it turns on and off.
 
Last edited: