mojira.dev
MC-265477

Stonecutter recipe won't activate recipe unlock advancement repeatly

The stonecutter recipe won't trigger the recipe unlock advancement more then one times until the recipe be forgotten by command and learned again.

How to reproduce problem:

  1. Add a recipe "new_recipe:cobblestone" to datapack, it's the recipe that cut the stone to cobblestone using stonecutter.

  2. Add a advancement "new_recipe:new_recipe/stonecut_a_stone" and set the trigger to "minecraft:recipe_unlocked", and set condition to {"recipe": "new_recipe:cobblestone"}.

  3. Stonecut a stone using stonecutter, at the first time, the advancement pop up because of the recipe unlocked.

  4. Revoke the advancement "new_recipe:new_recipe/stonecut_a_stone" and stonecut the stone second time, but this time, the advancement didn't pops up.

Will, maybe you might think it's normal, because the recipe is already unlocked, but weird thing is, if I did the same thing with furnace and blast furnace recipe, they pop up advancement even the recipe already unlocked. Therefore, there must one of them works wrong.

Here is the repository I store the datapack: (Note that there are also containing unrelevent features.)
Xiang990293/commands-in-server (github.com)

Attachments

Comments 4

Could you please attach a minimal setup data pack showcasing the issue? The GitHub link no longer works.

Sorry for the mistake with repository setting and long time unresponsing, I forgot to set public to the repository, I set it to public now, so you can visit the website, also, for conveniance, I make a world includes datapack only we need, and the stuff what you may need for testing, here is the world:

[media]

You need to use /recipe take @p new_recipe:cobblestone.
Using /advancement revoke will still keep recipes unlocked, which is why it doesn't work.

So, the problem is on furnace, because they still pop up the recipe unlocked advancement when take out item even the recipe is already unlocked, right?

Leo Xiang

(Unassigned)

Unconfirmed

Advancements, Commands, Data Packs

advancement, command, datapack, recipe

1.20.1, 1.20.2 Release Candidate 2, 1.20.2, 1.20.4

Retrieved