# Filter

A filter slot is a slot that can be set to a specific item by clicking on it with the item.

The items won't be placed in the slot and will remain in the player inventory, instead the slot will display a ghost (transparent) version of the item.

Clicking the slot with an empty mouse cursor will clear it.

The "mode" property of a filter item component doesn't matter.

{% hint style="info" %}
To make a recipe requires the filter slot to be set to a specific item use an [item-filter](https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/item-filter "mention") requirement.
{% endhint %}

### ID

```json
"variant": "filter"
```

### Accepted items

Any items that match the filter defined in the item component "filter" property.

### Example

```json
{
    "type": "custommachinery:item",
    "id": "filter1",
    "variant": "custommachinery:filter"
}
```
