Background element
Change the size and background texture of the machine gui.
The background gui element work mostly the same way as the texture gui element.
It is used to display a background texture for the machine gui.
By default the machine gui doesn't have a background texture, meaning that the gui will be transparent if no background element are specified.
It can also be used to change the size of the gui.
The default machine gui size is 256x192px and the maximum size is 3840x2160px.
If a texture is specified the width/height of the gui will use the width/height of that texture (unless these properties are specified in the background element).
Background elements are defined in json with "type": "custommachinery:background"
.
You can only define 1 background element for a machine gui, if more than 1 background elements are added only the first will be used and the other ignored.
Properties
The background element has 1 mandatory property and 3 optional properties :
Mandatory property
Optional properties
Example :
The most basic background gui element that will fix 99% of your use-cases :
A background gui element that resize the machine gui to 192x256px
A background gui element that change the default texture (size will be handled automatically) :
Last updated