News
Game
Guides
Downloads
Versions
/recipe
COMMANDS ITEMS & INVENTORY CHEATS · LEVEL 2 Added in 1.14 or earlier

/recipe command in Minecraft

/recipe unlocks recipes in a player's recipe book, or takes them away. Use * to cover every recipe at once. The command matters most with the limited_crafting game rule, where players can only craft the recipes they have unlocked.

Syntax

/recipe give <targets> (*|<recipe>)
/recipe take <targets> (*|<recipe>)
ArgumentExpectsWhat it does
targetsPlayer selectorone or severalPlayers whose recipe book changes: @s, @p, @a or a player name.
recipeID · recipeRecipe ID such as minecraft:torch, or * for every recipe in the game and in loaded data packs.
All 4 forms
  • /recipe give <targets> *
  • /recipe give <targets> <recipe>
  • /recipe take <targets> *
  • /recipe take <targets> <recipe>

Examples

Unlock every recipe

/recipe give @s *

Fills your recipe book with every recipe in the game.

Java 26.3

Reset all recipe books

/recipe take @a *

Removes every unlocked recipe from all players, useful before a map starts.

Java 26.3

Unlock one specific recipe

/recipe give @p minecraft:diamond_pickaxe

The nearest player learns the Diamond Pickaxe recipe.

Java 26.3

Forget a single recipe

/recipe take @s minecraft:enchanting_table

Removes the Enchanting Table recipe from your recipe book.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

Recipe book and limited crafting

Recipes normally unlock as you pick up ingredients. /recipe skips that step. Recipe IDs usually match the result, such as minecraft:torch or minecraft:diamond_pickaxe. With /gamerule limited_crafting true (/gamerule), the Crafting Table only accepts unlocked recipes, which lets an adventure map control what players can make.

Recipes and advancements

Most recipes are unlocked by hidden advancements stored under minecraft:recipes/. That is why /advancement grant @s everything (/advancement) also fills the recipe book. A Knowledge Book carrying the recipes component unlocks a list of recipes when used, a handy reward for a map.

Common messages

  • No new recipes were learned: the player already knew every recipe given.
  • No recipes could be forgotten: the player did not know them.

The command never gives items: use /give for the ingredients or the result. Taking a recipe back does not remove items that were already crafted.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/recipe: FAQ

Does /recipe give the crafted item?

No. It only adds the recipe to the recipe book. Use /give if the player also needs the item.

How do I stop players from crafting unknown recipes?

Set /gamerule limited_crafting true. From then on, players can only craft the recipes they have unlocked, for example with /recipe give.

How do I use /recipe?

Type it in the chat with cheats on: /recipe give <targets> (*|<recipe>).

Who can use /recipe?

Cheats on, or operator level 2.

Related commands