# Mana

Use this variant to make the slot able to fill/drain mana from the machine internal buffer to/from an mana container item placed in that slot.

The fill/drain behavior is determined by the "mode" property of the item component :&#x20;

* "input" will transfer the mana from the item to the machine buffer.
* "output" will transfer the mana from the machine buffer to the item.

### ID

```json
"variant": "custommachinery:mana"
```

### Accepted items

Any mana container items (mana tablets, mana band,...) that match the filter defined in the item component ["filter"](https://frinn.gitbook.io/custom-machinery-1.19/creating-custom-machines/machine-components/item-component#name-filter) property.

### Example

A simple mana slot that transfer the mana  from the item to the machine internal buffer :&#x20;

```json
{
    "type": "custommachinery:item",
    "id": "manaInput",
    "mode": "input",
    "variant": "custommachinery:mana"
}
```


---

# 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/creating-custom-machines/machine-components/item-component/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.
