Skip to main content

Inner Predicate

The inner-... predicate matches against the contents of inventory-bearing items, such as shulker-boxes or bundles; it will cause a mismatch on items which do not have an inventory.

In order to use this operator on more complex expressions, make use of parentheses, as follows:

inner-some(...)
inner-all(...)

If the expression is simple enough such that there would be no ambiguity, parentheses may be dropped.

Inner-Some Predicate

Only some of the items within the item's inventory need to match for the predicate to be satisfied.

LanguageIdentifier
en_usinner-some
en_gbinner-some
de_deinnen-manche
de_atinnen-manche
de_chinnen-manche
zh_cninner-some
tr_trinner-some
fr_frinner-some

Examples

Input: inner-some Stone
Result: All items which contain at least one item of stone in their inner inventory

Inner-Some-Or-Self Predicate

Behaves exactly like the Inner-Some predicate but also allows the item itself to match the operand, which prevents having to specify the inner predicate twice if one seeks to match both versions.

Examples

Input: inner-some-or-self Stone
Result: All items which contain at least one item of stone in their inner inventory, or stone itself

Inner-All Predicate

All of the items within the item's inventory need to match for the predicate to be satisfied.

LanguageIdentifier
en_usinner-all
en_gbinner-all
de_deinnen-alle
de_atinnen-alle
de_chinnen-alle
zh_cninner-all
tr_trinner-all
fr_frinner-all

Examples

Input: inner-all Stone
Result: All items which have all slots in their inner inventory occupied by stone

Input: inner-all(Stone or Air)
Result: All items whose inventories are made up of either vacant slots or slots with stone

Input: inner-all(Stone or Air) and not inner-all Air
Result: All items whose inventories are made up of either vacant slots or slots with stone but are not completely empty

Inner-All-Or-Self Predicate

Behaves exactly like the Inner-All predicate but also allows the item itself to match the operand, which prevents having to specify the inner predicate twice if one seeks to match both versions.

Examples

Input: inner-all-or-self Stone
Result: All items which have all slots in their inner inventory occupied by stone, or stone itself