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.

To make a recipe requires the filter slot to be set to a specific item use an Item filter requirement.

ID

"type": "custommachinery:item_filter"

Accepted items

Any items that match the filter defined in the item component "whitelist" and "blacklist" properties.

Example

{
    "type": "custommachinery:item_filter",
    "id": "filter1"
}

Last updated