Item Matches Predicate
Checks if an item matches an item predicate argument.
Type ID: kaya:item_matches_predicate
Format
| Field | Type | Default | Description |
|---|---|---|---|
predicate |
Item Predicate Argument | The item predicate argument to match. | |
item |
Item Provider | The item to check if it matches the item predicate argument. |
Example
{
"type": "kaya:item_matches_predicate",
"predicate": "*[minecraft:food]",
"item": "item_in_container"
}
This example will check if the item provided by the kaya:item_in_container context parameter has the minecraft:food item component.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |