Status element
Add an icon to display the machine status in the machine gui.
The status element is used to shown the crafting status of the custom machine in the Machine GUI.
Status element must be defined in json like : "type": "custommachinery:status".
The crafting status of a custom machine can be IDLE, RUNNING or ERRORED.
![]()
IDLE mean the machine can't craft any recipes (because of missing inputs)
![]()
RUNNING mean the machine is currently processing a recipe
![]()
ERRORED mean the machine encountered an error while processing a recipe, the error message will be displayed as a tooltip when you hover the Status Element with your mouse.
Properties
The status element has 3 mandatory properties and 6 optional properties :
Mandatory properties
"type": "custommachinery:status" //Mandatory to define a status element.Optional property
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.
Idle texture
Name : idleTexture
idleTextureDescription :
The location of the texture file the status element will display when the machine status is IDLE.
Default :
The default status IDLE texture provided by Custom Machinery.
custommachinery:textures/gui/base_status_idle.png
Example :
The texture loader will use the file assets/namespace/textures/status_idle_texture.png as the status IDLE texture in the machine GUI.
Running texture
Name : runningTexture
runningTextureDescription :
The location of the texture file the status element will display when the machine status is RUNNING.
Default :
The default status RUNNING texture provided by Custom Machinery.
custommachinery:textures/gui/base_status_running.png
Example :
The texture loader will use the file assets/namespace/textures/status_running_texture.png as the status RUNNING texture in the machine GUI.
Errored texture
Name : erroredTexture
erroredTextureDescription :
The location of the texture file the status element will display when the machine status is ERRORED.
Default :
The default status ERRORED texture provided by Custom Machinery.
custommachinery:textures/gui/base_status_errored.png
Example :
The texture loader will use the file assets/namespace/textures/status_errored_texture.png as the status ERRORED texture in the machine GUI.
Example :
A basic status element with the default textures :
Result :

(Here the Custom Machine is IDLE if not obvious)
Last updated