Empty element

An element that renders nothing

The empty gui element does nothing on it's own, it's useless to add it in a machine json.

It's only use is for replacing another gui element when a recipe is processing, that way it is possible to 'remove' a machine gui element by replacing it by an empty element with the same id.

Empty elements are defined in json with : "type": "custommachinery:empty".

Properties

The empty element has 1 mandatory property and 1 optional property :

Mandatory property

"type": "custommachinery:empty" //Mandatory to define an empty element.

Optional property

Id

Name : id

Description :

The id of the element.

If used in a custom machine recipe, this element will replace another element with the same id.

Example :

The element will replace another element with the id "input".

"id": "input"

Example

A simple empty gui element :

{
    "type": "custommachinery:empty",
    "id": "input"
}

Last updated