mojira.dev
MC-271030

Predicates require both pattern and material for trim component

Using only a pattern or a material for the trim item component in a predicate returns No key pattern in MapLike or more specifically:

[00:19:39] [Worker-Main-58/ERROR]: Couldn't parse element predicates:spells:boots/trim_material_diamond - Not a json array: {"condition":"minecraft:entity_properties","entity":"this","predicate":{"equipment":{"feet":{"components":{"minecraft:trim":{"material":"minecraft:diamond"}}}}}}; No key pattern in MapLike[{"material":"minecraft:diamond"}] missed input: {"minecraft:trim":{"material":"minecraft:diamond"}}

 

While trims can only occur as a pattern + material, testing for only one of these is totally valid. For now I had to fallback to matching nbt in a target selector to archive this.
Ideally there would be a way to check pattern and material of the trim item component independently via predicates.

Linked issues

Comments 1

Thank you for your report!
We're tracking this issue in MC-270707, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as invalid. Please take a look at the parent ticket (MC-270707) and see if an explanation is provided there in the description of the ticket or in the comments for why this issue is invalid.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

40_2

(Unassigned)

Unconfirmed

Data Packs

1.20.5 Release Candidate 2

Retrieved