mojira.dev
MC-276212

advancements that require minecraft:custom_data only work with exact match

I have made an advancement that triggers when player eats an item that contains minecraft:custom_data, however when additional data is put into the item's custom_data the advancement no longer works, it has to be exactly what is on the item at this time.

This prevents any scoring system that relies on custom_data, and makes any partial check fail.

*Also using unquoted check: {"exp_stoar":{"blorb":1}} instead of "{exp_stoar:{blorb:1}}" does not work at all, even if data on the item perfeclty matches that of the check.Β 

What i expected to happen

The advancement triggers when item has all required data to match and even more

What actually happens

The advancement fails when item has extra data besides what it is checking for

How to reproduce

  • use the test.zip datapack

  • switch to creative

  • /loot give @s loot test:blorb

  • eat one, notice that only one achivement triggered

  • /item modify entity @s weapon.mainhand test:update_valueΒ  --this will add "val:1" to custom_data

  • eat one, this time no achivements triggered

Β 

Linked issues

Attachments

Comments 1

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

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

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

NoteBug

(Unassigned)

Unconfirmed

(Unassigned)

1.21.1

Retrieved