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
Β
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