Size element

Change the size of the machine gui.

The size gui element doesn't add anything to the machine gui.

Instead it can be used to change the size of the gui.

The default machine gui size is 256x192px.

The maximum size is 3840x2160px.

Size elements are defined in json with "type": "custommachinery:size".

You can only define 1 size element for a machine gui, if more than 1 size elements are added only the first will be used and the other ignored.

Properties

The size element has 1 mandatory property and 2 optional properties :

Mandatory property

"type": "custommachinery:size" //Mandatory to define a size element.

Optional properties

Width

Name : width

Description :

A positive integer that define the width of the machine gui.

Maximum allowed value : 3840

Default : 256

Example :

"width": 512 //The machine gui will be 512px wide.
Height

Name : height

Description :

A positive integer that define the height of the machine gui.

Maximum allowed value : 2160

Default : 192

Example :

"height": 512 //The machine gui will be 512px high.

Example :

A size gui element that resize the machine gui to 192x256px

{
    "type": "custommachinery:size",
    "width": 192,
    "height": 256
}

Last updated