Skip to content

JEI Recipe GUI

Frinn38 edited this page Jul 20, 2021 · 2 revisions

All your machines recipe are displayed in jei without you having to do anything (beside the machine and recipe json).

The jei recipe gui will be a copy of the Machine Gui you created.

But in some cases you may want to have a different gui for your recipes than the machine one, with more or less elements.

To do that you can make your own jei recipe gui. By simply using the "jei" property in the machine json and putting here a list of elements you want to be displayed in jei.

The syntax and elements are exactly the same as in the "gui" property :

"jei": [
    {
        "type": "custommachinery:slot",
        "x": 0,
        "y": 0
    },
    {
        "type": "custommachinery:progress",
        "x": 20,
        "y": 20
    }
]

NOTE : As soon as you use the "jei" property in the machine json, all elements defined in the "gui" property will not be used by the jei recipe gui. You have to copy the elements you want to keep. The machine gui itself will not change if you use this property, only the jei one will be affected.

Clone this wiki locally