# 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.

### Available requirements

There are currently 21 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.16/recipes/requirements/biome)
{% endcontent-ref %}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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