
Command
/recipe
Unlocks recipes in players' recipe books or takes them away.
| /recipe (give <targets>|take <targets>) * |
| /recipe (give <targets>|take <targets>) <recipe> |
| Argument | Kind of value | What to type |
|---|---|---|
| <targets> | Target selector | The players whose recipe books are changed. One or more players. |
| <recipe> | Game id | The id of one recipe, for example minecraft:diamond_sword. Use * for all recipes. The id of a recipe. |
| Permission level | 2: operators, worlds with cheats on, command blocks and functions |
| Works in | Singleplayer with cheats enabled, operators on multiplayer servers, command blocks and functions. |
| Result | give reports "Unlocked <number> recipe(s) for <player>" and take reports "Took <number> recipe(s) from <player>" (or the number of players when several changed). The number /execute store saves is the total number of recipes unlocked or taken across all players. |
| All recipes | Use * instead of a recipe id to give or take every recipe that can appear in the recipe book. |
| Special recipes | Recipes that are never shown in the recipe book, such as the special crafting recipes handled by the game itself, cannot be given or taken. |
| Nothing changed | give fails with "No new recipes were learned" if every target already knows the recipe; take fails with "No recipes could be forgotten" if no target knows it. |
/recipe give @s *Unlocks every recipe for you.
/recipe give @s minecraft:diamond_swordUnlocks the Diamond Sword recipe for you.
/recipe give @a minecraft:cakeUnlocks the Cake recipe for all players.
/recipe take @a minecraft:tntRemoves the TNT recipe from every player's recipe book.
/recipe take @s *Removes every recipe from your recipe book.



