> For the complete documentation index, see [llms.txt](https://alec.gitbook.io/custom-machinery-botania-1.19/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alec.gitbook.io/custom-machinery-botania-1.19/mod-integrations/kubejs/recipes/mana.md).

# Mana

Use the mana requirement in a KubeJS recipe

**Use one of these methods to add an** [**Mana Requirement**](/custom-machinery-botania-1.19/recipes/requirements/mana.md) **to the recipe.**

```javascript
.requireMana(amount)

.requireManaPerTick(amount)

.produceMana(amount)

.produceManaPerTick(amount)
```

* The `amount` param must be a positive integer.

### Example

The following recipe will consume 1000 mana.

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

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requireMana(1000)
  
})
```
