Texture element
Add a texture to the machine gui.
The texture gui element is the most basic element, it is used to render a texture on the Machine GUI.
Texture elements are defined in json with : "type": "custommachinery:texture"
.
The texture must be loaded into the game by either a resourcepack or a resource loader mod.
Note : By default the Machine GUI don't have any textures, not even a background. If you want a background four your Custom Machine GUI you need to use a Texture Element and set the x/y properties to 0/0.
Properties
The texture element has 4 mandatory properties and 4 optional properties :
Mandatory properties
"type": "custommachinery:texture" //Mandatory to define a texture element.
Optional properties
Example
A background Texture Element using the base background texture provided by Custom Machinery :
{
"type": "custommachinery:texture",
"x": 0,
"y": 0,
"texture": "custommachinery:textures/gui/base_background.png"
}

Last updated