# Requirements

Recipe requirements are what make a recipe do things, should it be inputs, outputs, world interaction etc...

A recipe can take an unlimited amount of requirements.

When processing a recipe, the machine will check all requirements and execute their actions, if one or several requirement couldn't be processed, the machine will switch to error status, display an error and try again later.

Requirements are defined in a recipe json using the `"requirement"` property to specify an array of requirements :&#x20;

{% code title="recipe.json" %}

```json5
{
    "requirements": [
        {
            //Requirement 1
        },
        {
            //Requirement 2
        }
    ]
}
```

{% endcode %}

The `"requirement"` property is optional but the recipe will do nothing if no requirements are specified.

{% hint style="info" %}
You can add or change the [display info](https://frinn.gitbook.io/custom-machinery-1.19/misc/requirement-display-info) of any requirement.
{% endhint %}

### Available requirements

There are currently 23 requirement types implemented, each one of them have a specific goal and can be configured as you need.

{% content-ref url="requirements/biome" %}
[biome](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/biome)
{% endcontent-ref %}

{% content-ref url="requirements/block" %}
[block](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/block)
{% endcontent-ref %}

{% content-ref url="requirements/command" %}
[command](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/command)
{% endcontent-ref %}

{% content-ref url="requirements/dimension" %}
[dimension](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/dimension)
{% endcontent-ref %}

{% content-ref url="requirements/drop" %}
[drop](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/drop)
{% endcontent-ref %}

{% content-ref url="requirements/durability" %}
[durability](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/durability)
{% endcontent-ref %}

{% content-ref url="requirements/effect" %}
[effect](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/effect)
{% endcontent-ref %}

{% content-ref url="requirements/energy" %}
[energy](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/energy)
{% endcontent-ref %}

{% content-ref url="requirements/energy-per-tick" %}
[energy-per-tick](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/energy-per-tick)
{% endcontent-ref %}

{% content-ref url="requirements/entity" %}
[entity](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/entity)
{% endcontent-ref %}

{% content-ref url="requirements/fluid" %}
[fluid](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/fluid)
{% endcontent-ref %}

{% content-ref url="requirements/fluid-per-tick" %}
[fluid-per-tick](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/fluid-per-tick)
{% endcontent-ref %}

{% content-ref url="requirements/fuel" %}
[fuel](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/fuel)
{% endcontent-ref %}

{% content-ref url="requirements/item" %}
[item](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/item)
{% endcontent-ref %}

{% content-ref url="requirements/item-transform" %}
[item-transform](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/item-transform)
{% endcontent-ref %}

{% content-ref url="requirements/light" %}
[light](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/light)
{% endcontent-ref %}

{% content-ref url="requirements/loot-table" %}
[loot-table](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/loot-table)
{% endcontent-ref %}

{% content-ref url="requirements/position" %}
[position](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/position)
{% endcontent-ref %}

{% content-ref url="requirements/redstone" %}
[redstone](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/redstone)
{% endcontent-ref %}

{% content-ref url="requirements/sky" %}
[sky](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/sky)
{% endcontent-ref %}

{% content-ref url="requirements/structure" %}
[structure](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/structure)
{% endcontent-ref %}

{% content-ref url="requirements/time" %}
[time](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/time)
{% endcontent-ref %}

{% content-ref url="requirements/weather" %}
[weather](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/weather)
{% endcontent-ref %}

### Addons requirements

These requirements are implemented in their own Custom Machinery addons.

#### Mekanism

{% content-ref url="requirements/chemical-mekanism" %}
[chemical-mekanism](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/chemical-mekanism)
{% endcontent-ref %}

{% content-ref url="requirements/heat-mekanism" %}
[heat-mekanism](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/heat-mekanism)
{% endcontent-ref %}

{% content-ref url="requirements/radiation-mekanism" %}
[radiation-mekanism](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/radiation-mekanism)
{% endcontent-ref %}

{% content-ref url="requirements/temperature-requirement-mekanism" %}
[temperature-requirement-mekanism](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/temperature-requirement-mekanism)
{% endcontent-ref %}

#### Create

{% content-ref url="requirements/contraption-requirement-create" %}
[contraption-requirement-create](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/contraption-requirement-create)
{% endcontent-ref %}


---

# 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.19/recipes/requirements.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.
