Fluid element
Customize the fluid tanks in the machine gui.
The fluid elements are used to display the content of a fluid component in the Machine GUI.
A Fluid element must be associated with a Fluid Component using the id property. It will display the fluid stored in the Fluid Component on the Machine GUI.
Fluid elements are defined in json with "type": "custommachinery:fluid"
.
If the fluid element cannot find the fluid Component (usually because of an error in the id) the fluid element will still be rendered but it will always be empty.
Properties
The fluid element has 4 mandatory properties and 7 optional properties :
Mandatory properties
"type": "custommachinery:fluid" //Mandatory to define a fluid element.
Optional properties
Example :
A basic fluid element linked to a fluid component using the id "tank1" and using the default texture :
{
"type": "custommachinery:fluid",
"x": 20,
"y": 20,
"id": "tank1"
}
Result :

(Here the Fluid Component contains 4000mB of Water)
Last updated