> For the complete documentation index, see [llms.txt](https://frinn.gitbook.io/custom-machinery-1.21/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.21/mod-integrations/kubejs/recipes/pressure-pnc.md).

# Pressure (PNC)

Use the pressure requirement in a KubeJS recipe.

{% hint style="warning" %}
This requirement requires [Custom Machinery Pneumaticcraft](https://www.curseforge.com/minecraft/mc-mods/custom-machinery-pneumaticcraft) to be installed.
{% endhint %}

**Use one of these methods to add a** [**pressure requirement**](/custom-machinery-1.21/recipes/requirements/pressure-pnc.md) **to the recipe.**

```javascript
.requirePressure(min, max)
.requirePressure(min, max, volume)

.producePressure(volume)
```

* The `min` and `max` params must be decimal values bewteen -1 and 25.
* The volume param must be a positive integer.

### Example

The following recipe will run only if the machine's pressure is between 2bar and 3bar and will consume 100mL of compressed air.

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

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requirePressure(2, 3, 100)
  
})
```
