/recipe

/recipe
Permission level
required
  • 2 ‌
  • 1 ‌
Restrictions

Cheat only‌

Gives or takes (unlocks or locks) recipes for players.

Syntax

recipe give <targets> * (Java Edition)
recipe give <player: target> * (Bedrock Edition)
recipe give <player: target> "*" (Bedrock Edition)
Gives (unlocks) all recipes to the player.
recipe take <targets> * (Java Edition)
recipe take <player: target> * (Bedrock Edition)
recipe take <player: target> "*" (Bedrock Edition)
Takes (locks) all recipes from the player.
recipe give <targets> <recipe> (Java Edition)
recipe give <player: target> <recipe: string> (Bedrock Edition)
Gives (unlocks) a specified recipe to the player.
recipe take <targets> <recipe> (Java Edition)
recipe take <player: target> <recipe: string> (Bedrock Edition)
Takes (locks) a specified recipe from the player.

Arguments

JE<target>: entity
BE: player: target: CommandSelector<Player>

Specifies the player(s) to give or take the recipe from.
Must be a player name, a target selector or a UUID‌. And the target selector must‌/should‌ be of player type. In Bedrock Edition, the target selector should be of player type.

JE<recipe>: resource_location
BE: recipe: string: basic_string

Specifies a recipe to give or take.
Must be a resource location for an unregistered content. In Bedrock Edition, must be the ID of a recipe (namespace cannot be omitted or added), see the official document.

Result

CommandTriggerJava EditionBedrock Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable Unparseable
<target> or player: target fails to resolve to one or more online players. Failed Failed
player: target is a target selector that is not in player type. N/A Failed
/recipe ... *
/recipe ... "*"‌
There's no player being newly unlocked or locked any recipe. Failed Successful
/recipe ... <recipe>
/recipe ... <recipe: string>
There's no recipe with the specified ID. Failed
There's no player being newly unlocked or locked any recipe.
AnyOtherwiseSuccessful

Output

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn fail000
On success11the total number of recipes given to/taken from each player.
AnyBedrock EditionOn fail0N/AN/A
/recipe ... <*|"*">On successthe number of specified players.N/AN/A
/recipe ... <recipe: string>On successthe number of players whose recipe is newly unlocked/locked.N/AN/A

History

Java Edition
1.1217w13aAdded /recipe.
Bedrock Edition
1.20.10
Experiment
Recipe Unlocking
Preview 1.20.10.21Added /recipe behind the "Recipe Unlocking" experimental toggle.
1.20.30
Experiment
Recipe Unlocking
Preview 1.20.20.20Updated the syntax to match Java Edition.
The recipes are now suggested by the command auto-complete.
Now an output message appears after the command is executed.
1.20.30Preview 1.20.20.21/recipe is no longer behind the "Recipe Unlocking" experimental toggle.
Preview 1.20.20.22Renamed the victim: target argument to player: target.

See also

Navigation