Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Java Edition. 

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

Syntax[]

recipe (give|take) <targets> *

Gives or takes all recipes from that player.

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

Gives or takes a specified recipe from that player.

Arguments[]

give|take

If give, the recipe will be given (unlocked) for the player. If take, the recipe will be taken (locked) for the player.

<target>: entity

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 be of player type.

<recipe>: resource_location

Specifies a recipe to give or take.
Must be a resource location.

Result[]

CommandTriggerJava Edition
anythe arguments are not specified correctly Unparseable
<target> fails to resolve to one or more online players Failed
does not give or take any recipe from any player
On successUnlocks or takes recipes from players.

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn fail000
On success11the total number of recipes given to/taken from each player.

History[]

Java Edition
1.1217w13aAdded /recipe.

See also[]

  • Knowledge Book
  • /gamerule doLimitedCrafting – Whether players should only be able to craft recipes that they have unlocked first.
Advertisement