Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change item filters like
holding
,carrying
andwearing
withItemMatcher
s. Item matchers are a more generic way of matching items, supporting checking ignoring metadata, or amount ranges.Prior to this, item matching was always exact meta, always ignoring durability, and "at least X" amount matching, this is the default behavior if no extra flags are specified.
Examples:
This will match if you're holding between 3 and 6 (inclusive) white wool, ignoring any other metadata (eg: enchantments, renaming, can-place-on, etc).
This will match at least 5 wool (legacy behavior) of any durability (any color) (legacy behavior), and matching exact metadata (eg: name, can-place-on, etc), but will ignore enchantments.
The new available properties are:
ignore-durability
(default true),ignore-metadata
(default false),ignore-name
(default ignore-meta),ignore-enchantments
(default to ignore-meta).If
ignore-metadata
is set to true,ignore-name
andignore-enchantments
cannot be false.