# Pressure (PNC)

{% 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)
  
})
```


---

# 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.21/mod-integrations/kubejs/recipes/pressure-pnc.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.
