Wiki ArticleJava EditionJava Edition technical

Data component predicate

Data component predicates (historically known as item sub-predicates) are used to check conditions about data components. They are used in minecraft:item_predicate argument type, item modifiers, loot predicates, advancement criteria, and entity and block predicates. They return a pass or fail result to the invoker, who acts differently based on this result.

Checks modifiers in the attribute_modifiers data component.

Checks item stacks in the bundle_contents data component.

Complete article available

This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.