> 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/recipes/requirements/mana-per-tick.md).

# Mana per tick

Mana per tick requirement is used to define per-tick mana inputs and outputs for a custom machine recipe.

To use it you just need to provide the amount of mana you want the recipe to consume/produce each tick.

This requirement is available in both `input` and `output` modes.

In input mode : While crafting the recipe, the machine will consume the specified amount of mana each tick from the machine [mana component](/custom-machinery-botania-1.19/creating-custom-machines/machine-components/mana-component.md).

In output mode : While crafting the recipe, the machine will produce the specified amount of mana each tick and put it in the machine [mana component](/custom-machinery-botania-1.19/creating-custom-machines/machine-components/mana-component.md).

The requirement type of mana per tick requirement is :`"custommachinery:mana_per_tick"`

### Properties

The mana per tick requirement has 3 mandatory properties.

#### Mandatory properties

```json
"type": "custommachinery:energy_per_tick" //Mandatory to define an mana per tick requirement.
```

<details>

<summary>Mode</summary>

#### Name : `mode`

#### Description :

Define the I/O mode of the requirement.

* `input` The requirement will consume mana at the start of the crafting process.
* `output` The requirement will produce mana at the end of the crafting process.

#### Example :

```json
"mode": "input"
```

The requirement will consume mana at the start of the crafting process.

</details>

<details>

<summary>Mana</summary>

#### Name : `mana`

#### Description :&#x20;

A positive integer value that define the amount of mana the recipe will consume/produce.&#x20;

It can be any positive number but remember that the machine [mana component](/custom-machinery-botania-1.19/creating-custom-machines/machine-components/mana-component.md) must be able to store at least this amount of mana.

#### Example :&#x20;

```json
"mana": 1000
```

The recipe will consume/produce 1000 mana.

</details>

### Example

A mana per tick requirement that will make the recipe produce 2672 mana per tick:

```json
{
    "type": "custommachinery:mana_per_tick",
    "mode": "output",
    "mana": 2672
}
```

A mana per tick requirement that will make the recipe consume 20 mana per tick:

```json
{
    "type": "custommachinery:mana_per_tick",
    "mode": "input",
    "mana": 20
}
```
