Fuel element
Customize the fuel burning icon in the machine gui.
Fuel element is used to render a fuel bar on the Machine GUI.
Fuel elements are defined in json with : "type": "custommachinery:fuel"
.
You can add as many fuel element as you want to the machine GUI but they will all show the same burn time and be filled the same.
By default the texture is the same as the vanilla furnace little flame but you can change it if wanted.
Properties
The fuel element has 3 mandatory properties and 8 optional properties :
Mandatory properties
"type": "custommachinery:fuel" //Mandatory to define a fuel element.
Optional properties
Example
A basic fuel element :
{
"type": "custommachinery:fuel",
"x": 20,
"y": 20
}
Result :
On the image below the Machine was given 1 coal which have a burn time of 1600 ticks and the screenshot was taken at 913 ticks of burn time remaining so the fuel bar was filled at about 55%

Last updated