Liquid Measurement on Iron Tanks - Direwolf20 Pack

  • 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

Ivancho

New Member
Jul 29, 2019
6
0
0
Hello everyone:

I was searching some answer to this question, but I can't find anything about it, the question is: is there any way to measure the amount of liquid that contains an Iron Tank? and I mean the precise amount, not the percentage or anything like that.

I was thinking on something related to "computercraft-liquid level reading" or with the openPeripherals mod, but it seems there's nothing like that on the direwolf20's modpack.

Any help would be appreciated.

Thanks guys! :D
 

KhrFreak

New Member
Jul 29, 2019
689
1
0
Look into the mod Nuclear Control, it's more then just nuclear stuff. they have liquid sensor cards that can do exactly what your asking
 

angelnc

New Member
Jul 29, 2019
232
0
0
You can put wrap the Iron Tank Valve or Steel Tank Valve as a peripheral with OpenPeripherals.​
Either by putting a Computer right next to it or by connecting a Wired Modem to it and to the Computer.​
If you need code to access the information about the tanks liquid storage, you can PM me.​
 

angelnc

New Member
Jul 29, 2019
232
0
0
I'm working on a program for the Terminal Glasses and Terminal Glasses Bridge, which will display Tank Information and the energy stored in MFSUs. I will make this public for all, when it's finnished.
For just Steel Tank Valves:
Code:
valve = peripheral.wrap("left", "steel_tank_valve_0") --wraps steel_tank_valve_0 connected via wired modems on left side
 
tank = valve.getTanks("unknown")[1] --saves the tank belonging to the valve in the variable tank
 
print(tank["name"]) --prints the name of the liquid stored in the tank
 
print(tank["amount"]) --prints the amount of liquid stored
 
print(tank["capacity"]) --prints the maximum amount of liquid in the tank