The bug
When you get a recipe either by crafting or obtaining an item, and then remove the recipe using /recipe take, the recipe will no longer be learned if you obtain the item without crafting, To re-obtain the recipe, you have to craft it.
How to reproduce
Create a new world (obtaining recipe by receiving the item only works once)
/give @p planks
/give @p log
(used to prevent more recipes from obtaining later)/clear @p planks
/clear @p log
/recipe take @p *
/give @p planks
→ You do not get a recipe notification/give @p log
Craft a plank
→ The recipe is now given
Linked issues
is duplicated by 1
Comments 6
Probably because the advancement that looks for wood in your inventory has already been achieved and the reward given.
Would it make more sense for the advancement to reward you every time you fulfill it? Perhaps, but then you'd get spammed with other potential rewards too. A "re-earnable" flag for advancements might help remedy this.
Can someone explain why this is WAI? To me it clearly sounds like a bug, not a design choice.
Surely revoking a recipe should have the same result as having never earned the recipe?
Because there are recipes
and advancements
that unlock recipes.
/recipe
only affects recipes themselves, not advancements that unlocked them (you have another command for it,/advancement
)If you already got an advancement, you can't get it again, unless you
revoke
itGiving
a recipegrants
you according advancement because advancement files for recipes were written that way
So, when you take a recipe, you don't reset it (1), only remove it from the list of things you can craft via recipe book; because you already earned that recipe, you can't earn it again (2); and if you already have a recipe, then it was already earned (3) (so, you don't have other options)
Is there a work around using /advancemt? Something like
/advancement revoke @s only minecraft:recipes/*
or
/advancement revoke @s under minecraft:recipes
Or maybe, since /recipe grants recipe advancements when giving recipes, it should also revoke them when taking recipes?
Can confirm (17w15a)