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 3 optional properties.

Mandatory property

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

Optional property

X

Name : x

Description :

A range that define the valid positions on the X axis that the machine can process this recipe.

Default : "*"

Any X positions are allowed.

Example :

"x": "[,0)"

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

Y

Name : y

Description :

A range that define the valid positions on the Y axis that the machine can process this recipe.

Default : "*"

Any Y positions are allowed.

Example :

"y": "[,0)"

The recipe will run only if the machine is in negative coordinates in the Y axis.

Z

Name : z

Description :

A range that define the valid positions on the Z axis that the machine can process this recipe.

Default : "*"

Any Z positions are allowed.

Example :

"z": "[,0)"

The recipe will run only if the machine is in negative coordinates in the 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",
    "y": "(128,)"
}