Machine GUI

Customize the GUI of the machine.

The Machine GUI is the main tool to interact with the machine in-world. It will be used to display the current status of the machine as well as the different components and their contents.

A machine GUI is not mandatory, if you don't want it just don't put it in the machine json.

A Machine GUI is composed of various GUI Elements, there is no limit of how many elements you can put.

The Machine GUI and it's Elements must be defined as such in the machine json :

"gui": [
    {
        //Element 1
    },
    {
        //Element 2
    }
]

GUI Elements

There are currently 17 available GUI elements :

Bar elementButton elementConfig elementDump elementEmpty elementEnergy elementExperience elementFluid elementFuel elementPlayer inventory elementProgress bar elementReset elementSize elementSlot elementStatus elementText elementTexture element

Notes

The Machine GUI is by default (and for now it can't be changed) 256px wide and 192px high.

This mean that the x property cannot be higher than 256 and the y property cannot be higher than 192.

Minecraft GUI (including the Custom Machine GUI) are rendered in 2 dimensions Axis X/Y.

X axis is the horizontal axis with 0 at the left of the screen and going to the right.

Y axis is the vertical axis with 0 at the top (no that is not an error) of the screen and going to the bottom.

I repeat because this is a very weird concept but the origin point in Minecraft GUI coordinates is at the top left of the screen, not the bottom left but really the top left !!! And the Y axis is inversed so the positives values are going to the bottom of the screen.

To illustrate this concept here is an image :

(The "stage" white square is your screen)

Last updated