Skip to content

Item Matches Ingredient

Checks if an item matches an ingredient.

Type ID: kaya:item_matches_ingredient

Format

Field Type Default Description
ingredient Ingredient The ingredient to match.
item Item Provider The item to check if it matches the ingredient.

Example

{
    "type": "kaya:item_matches_ingredient",
    "ingredient": "#minecraft:planks",
    "item": "used_item"
}

This example will check if the item provided by the kaya:used_item context parameter is included in the #minecraft:planks item tag.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.