How can I unlock a recipe by completing an advancement?

Started by Warrior_M on

Topic category: Help with MCreator software

Last seen on 12:52, 22. Jan 2023
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I unlock a recipe by completing an advancement?

So for a test, I made an item, then a recipe to craft it. After that I made an advancement, and added the recipe to it's reward list.

However, I can still craft the item without the completed advancement. (I tried nearly every combination of settings in the advancement menu and I tested it in more than 8 worlds, but It just doesn't works.)

So my question is...

How can I make a recipe that unlocks after I completed the advancement?

Last seen on 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry to inform ya about…
Sun, 09/20/2020 - 01:42

sorry to inform ya about this, but...

such a thing is not possible afaik. that's just how vanilla/modded Minecraft normally works. haven't unlocked a recipe yet but you already know its its pattern? you can still craft it, and then it unlocks the recipe for you.

 

well, unless you set the gamerule doLimitedCrafting to true, you cannot stop that from happening. i hope you understood that, and happy modding! :)

Last seen on 18:38, 23. Oct 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's possible  You have in…
Sun, 09/20/2020 - 08:22

It's possible 

You have in the advancement section recipe to unlock. 

Also I know how to make a advancement that just be a regular recipe that unlock when you do something. 

 

Last seen on 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@ordh1 You have in the…
Sun, 09/20/2020 - 10:46

@ordh1

You have in the advancement section recipe to unlock.

 yeah, i know that, but what the OP probably meant as i perceived was that a player can craft a recipe without it being "unlocked" first (the "new recipes unlocked" for the recipe/s being shown in the toast bar), since that really is the way it works. he already said:

After that I made an advancement, and added the recipe to it's reward list. However, I can still craft the item without the completed advancement.

what i meant to say was that normally, recipes would be registered but wouldn't be unlocked or revealed to the player instantly, unless there's some sort of logic-only achievement that when something is obtained/done by the player, it has the trigger option to give/unlock certain recipe/s for the player. yep, just clarifying, and sorry for the confusion, really...

Last seen on 18:38, 23. Oct 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok
Sun, 09/20/2020 - 11:54

Ok

Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Theres a form In the…
Wed, 10/13/2021 - 12:59

Theres a form

In the procedure section: "when the item is crafting/smelted" do

If: Event entity has "advancement" = false do

Eliminate "crafted item"

Give event entity target X of ITEM (put one of these blocks given any material used on the craft)

Is not perfect, but actually works

Sorry for my bad english