Customize the recipe progress arrow in the machine gui.
The progress bar element is used to render a progress bar in the Machine GUI (see the arrow that is slowly filled in the furnace GUI while smelting ? That's a progress bar).
Progress bar elements are defined in json with : "type": "custommachinery:progress".
You can add as much Progress Bar Elements as you want but they will all be filled at the same time since the machine can only process 1 recipe at a time.
When hovering the progress bar in jei with advanced item tooltips enabled (F3 + H), the progress bar tooltip will display the recipe ID. You can disable the need of enabling item tooltips in the config by setting needAdvancedInfoForRecipeID to false.
If JEI is installed you can click on the progress bar element in the machine gui to display in JEI all the recipes for this machine.
Properties
The progress bar element has 3 mandatory properties and 9 optional properties :
Mandatory properties
"type": "custommachinery:progress"//Mandatory to define a progress bar element.
X
Name : x
Description :
A positive integer value that define the x axis position of the element to be displayed on the Machine GUI.
Example :
The element will be rendered 100px to the right from the top-left corner of the gui.
"x": 100
Y
Name : y
Description :
A positive integer value that define the y axis position of the element to be displayed on the Machine GUI.
Example :
The element will be rendered 100px to the bottom from the top-left corner of the gui.
"y": 100
Optional properties
Width
Name : width
Description :
A positive integer value that define the width of the element on the Machine GUI.
Default :
The same width as the texture specified in the texture property.
Example :
The width of the element will be 100px.
"width": 100
Height
Name : height
Description :
A positive integer value that define the height of the element on the Machine GUI.
Default :
The same height as the texture specified in the texture property.
Example :
The height of the element will be 100px.
"height": 100
Priority
Name : priority
Description :
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.
"priority": 1000
Empty texture
Name : texture_empty
Description :
Point to a texture to use as the empty element texture. The texture must be loaded in-game with a resource pack or a loader mod.
The texture can be any size, if the texture size is different from the default size the width and height properties of the element will be automatically changed to fit the texture size if not provided.
If the width and/or height properties of the element are provided, the texture will be stretched to fit the dimensions of the element (it can render weirdly in that case).
The element will search for a texture located in assets/namespace/textures/progress_element_texture_empty.png
The .png extension is mandatory.
Filled texture
Name : texture_filled
Description :
Point to a texture to use as the filled element texture. The texture must be loaded in-game with a resource pack or a loader mod.
The filled texture will be rendered on top on the empty texture, how much the filled texture overlap the empty texture is relative to the amount of energy inside the energy component.