How can I unlock a recipe by completing an advancement?

Started by Warrior_M on Sat, 09/05/2020 - 15:08

Topic category: Help with MCreator software

Last seen on 18:39, 24. Oct 2020
Joined May 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I unlock a recipe by completing an advancement?
Sat, 09/05/2020 - 15:08

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 13:48, 24. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 13:48, 24. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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

Ok