# Position

**Use one of these methods to add a** [**Position Requirement**](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/position) **to the recipe.**

```javascript
.requirePosition(String x, String y, String z)
```

* The `x`, `y` and `z` params must be a valid [range](https://frinn.gitbook.io/custom-machinery-1.19/misc/range). Use `""` if you want to allow any value for an axis.

### Example

```javascript
ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requirePosition("", "(,128)", "")
  
})
```


---

# Agent Instructions: 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/mod-integrations/kubejs/recipes/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.
