Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/recipe

Command

/recipe

Unlocks recipes in players' recipe books or takes them away.

Syntax

/recipe (give <targets>|take <targets>) *
/recipe (give <targets>|take <targets>) <recipe>

Arguments

ArgumentKind of valueWhat to type
<targets>Target selectorThe players whose recipe books are changed. One or more players.
<recipe>Game idThe id of one recipe, for example minecraft:diamond_sword. Use * for all recipes. The id of a recipe.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled, operators on multiplayer servers, command blocks and functions.
Resultgive 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 recipesUse * instead of a recipe id to give or take every recipe that can appear in the recipe book.
Special recipesRecipes 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 changedgive 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.

Examples

/recipe give @s *

Unlocks every recipe for you.

/recipe give @s minecraft:diamond_sword

Unlocks the Diamond Sword recipe for you.

/recipe give @a minecraft:cake

Unlocks the Cake recipe for all players.

/recipe take @a minecraft:tnt

Removes the TNT recipe from every player's recipe book.

/recipe take @s *

Removes every recipe from your recipe book.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)