Ingredient

Data Type

Either: an Object specifying a registered item or item tag.

Or: an Array of Objects specifying a registered item or item tag.

Fields

Field Type Default Description
item Identifier optional ID of a registered item.
tag Identifier optional ID of an item tag. Will be ignored if item is set.

Examples

"ingredient": {
    "item": "minecraft:diamond"
}

An ingredient which matches a diamond.

"ingredient": {
    "tag": "minecraft:wool"
}

An ingredient which matches any wool block.

"ingredient": [
    {
        "item": "minecraft:cod"
    },
    {
        "item": "minecraft:cooked_cod"
    },
    {
        "tag": "minecraft:planks"
    }
]

An ingredient which matches cod in its raw or cooked form, or any of the wooden planks.