Chemical element (Mekanism)
Customize the chemical tanks in the machine gui
This element requires Custom Machinery Mekanism to be installed.
The chemical elements are used to display the content of a chemical component in the Machine GUI.
A chemical element must be associated with a chemical component using the id property. It will display the fluid stored in the component on the machine GUI.
If the element cannot find the component (usually because of an error in the id) the element will still be rendered but it will always be empty.
All of Mekanism chemicals types are supported :
Gas
Infusion
Pigment
Slurry
The type of chemical is defined in the type
property (see below).
Properties
The fluid element has 4 mandatory properties and 5 optional properties :
Mandatory properties
"type": "custommachinery:gas" //Mandatory to define a gas chemical element.
OR
"type": "custommachinery:infusion" //Mandatory to define a infusion chemical element.
OR
"type": "custommachinery:pigment" //Mandatory to define a pigment chemical element.
OR
"type": "custommachinery:slurry" //Mandatory to define a slurry chemical element.
Optional properties
Example :
A basic gas chemical element linked to a gas chemical component using the id "tank1" and using the default texture :
{
"type": "custommachinery:gas",
"x": 20,
"y": 20,
"id": "tank1"
}
Last updated