This issue applies to following advancement triggers:
crafter_recipe_craftedrecipe_craftedrecipe_unlocked
The recipes field of these can accept a inline definition of recipe or a list contains them, even though they never matches because game always provides a id of recipe to these trigger.
This is because recipe is a Recipe.LIST_CODEC, which is RegistryCodecs.holderSet(Registries.RECIPE, DIRECT_CODEC). I assume it should use something like RegistryCodecs.holderSet(Registries.RECIPE), which doesnβt allow inline values.
How to reproduce
Create world with attached datapack, which includes an advancement with inline recipe definition
Observe it doesnβt cause any error or warning
Craft a Name Tag, and make sure no advancement are granted
Linked issues
Attachments
Comments 2
Thank you for your report!
We're tracking this issue in MC-310320, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
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