> For the complete documentation index, see [llms.txt](https://frinn.gitbook.io/custom-machinery-1.19/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/position.md).

# Position

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.&#x20;

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

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

#### Optional property

<details>

<summary>X</summary>

#### Name : `x`

#### Description :&#x20;

A [range](/custom-machinery-1.19/misc/range.md) that define the valid positions on the X axis that the machine can process this recipe.

#### Default : `"*"`

Any X positions are allowed.

#### Example :&#x20;

```json
"x": "[,0)"
```

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

</details>

<details>

<summary>Y</summary>

#### Name : `y`

#### Description :&#x20;

A [range](/custom-machinery-1.19/misc/range.md) that define the valid positions on the Y axis that the machine can process this recipe.

#### Default : `"*"`

Any Y positions are allowed.

#### Example :&#x20;

```json
"y": "[,0)"
```

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

</details>

<details>

<summary>Z</summary>

#### Name : `z`

#### Description :&#x20;

A [range](/custom-machinery-1.19/misc/range.md) that define the valid positions on the Z axis that the machine can process this recipe.

#### Default : `"*"`

Any Z positions are allowed.

#### Example :&#x20;

```json
"z": "[,0)"
```

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

</details>

### Example

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

```json
{
    "type": "custommachinery:position",
    "y": "(128,)"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/position.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
