-
Bug
-
Resolution: Duplicate
-
None
-
1.21.1
-
None
-
Java 21.0.3
Windows 10 64bit 19045
-
Unconfirmed
-
(Unassigned)
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
- duplicates
-
MC-272893 Advancements: `components` requires exact match with target rather then specific tag
- Resolved