# Position

**Use one of these methods to add a** [**Position Requirement**](https://frinn.gitbook.io/custom-machinery-1.18/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.18/misc/range). Use `""` if you want to allow any value for an axis.

### Example

```javascript
onEvent('recipes', event => {

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