Position

Make the recipe work only when the machine is placed at certain positions

Position requirement is used to make the custom machine recipe work only in some positions of the world.

The position requirement is an input only requirement, meaning that you don't have to define the mode property.

It is used only to restrict or allow the usage of a recipe at certain positions of the world.

The requirement type of position requirement is : "custommachinery:position".

Properties

The position requirement has 1 mandatory property and 1 optional property.

Mandatory property

"type": "custommachinery:position" //Mandatory to define a position requirement.

Optional property

Positions

Name : positions

Description :

An array of position comparators used to check if the machine is in certain positions of the world.

A position comparator is defined by the axis you want to check (x/y/z), the mode of the comparator and the actual position you want to compare.

See all available comparators here.

All the positions comparators must be match for the position to be validated.

Default : empty

Any positions are allowed.

Example :

"positions": ["x<<0", "z<<0"]

The recipe will run only if the machine is in negative coordinates in both X and Z axis.

Example

A position requirement that will allow the recipe to run only if the machine is higher than the 128 y layer :

{
    "type": "custommachinery:position",
    "positions": ["y>>128"]
}

Last updated