> For the complete documentation index, see [llms.txt](https://frinn.gitbook.io/custom-machinery-1.19/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frinn.gitbook.io/custom-machinery-1.19/creating-custom-machines/machine-components/item-component/filter.md).

# Filter

The item component variant to make a filter slot

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](/custom-machinery-1.19/recipes/requirements/item-filter.md) 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"
}
```
