Mana element
Customize the mana bar of the machine gui.
The mana gui element is used to display the content of a Mana Component present in the machine.
Mana elements are defined in json with: "type": "custommachinery:mana" .
Note that if you didn't set a Mana Component in the machine json the Mana Element will still work but always show a value of 0 mana.
Properties
The mana element has 3 mandatory properties and 5 optional properties:
Mandatory properties
"type": "custommachinery:mana" //Mandatory to define a mana element.Optional properties
Priority
Name : priority
priorityDescription :
An integer property that define the priority of the Element to be rendered.
Elements with higher priority will be rendered first. If 2 elements are at the same position the first to be rendered will be under and the last will be above.
Default : 0
Example :
The element will be rendered under each element that have a priority lower than 1000.
Example
A typical Mana GUI Element:
Result:

Last updated