> 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/mod-integrations/kubejs/recipes/position.md).

# Position

Use the position requirement in a KubeJS recipe

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

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

* The `x`, `y` and `z` params must be a valid [range](/custom-machinery-1.19/misc/range.md). 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)", "")
  
})
```
