Energy element
Customize the energy bar of the machine gui.
The energy gui element is used to display the content of an Energy Component present in the machine.
Energy Elements are defined in json with : "type": "custommachinery:energy"
.
Note that if you didn't set an energy component in the machine json the Energy Element will still work but will always show a value of 0FE.
Properties
The energy element has 3 mandatory properties and 6 optional properties :
Mandatory properties
"type": "custommachinery:energy" //Mandatory to define an energy element.
Optional properties
Example
A typical Energy GUI Element :
{
"type": "custommachinery:energy",
"x": 20,
"y": 20
}
Result :

Last updated