# Mana

**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)
  
})
```


---

# 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://alec.gitbook.io/custom-machinery-botania-1.19/mod-integrations/kubejs/recipes/mana.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.
