How do i make an item that is only craftable if you have it's recipe

Started by RustyLake on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make an item that is only craftable if you have it's recipe

I want to add an item that when you get every tool in the game, you get an advancement with a recipe, also want this item uncraftable if you didn't get the advancement (or simply if you don't have the recipe of it), can you help me if possible asap? :(

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you have to set do limited…
Wed, 06/26/2024 - 02:47

you have to set do limited crafting to true, but then you can make it so that the advancement gives you the recipe, then you have to make a procedure that checks if they have the tools in their inventory, and if so, give them the advancement, thus giving them the recipe.

(I am not quite sure how to check if the tools have been crafted, but you are able to check if they have it in their inventory.)