Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Java Edition. 
recipe
Permission level
required

2

Restrictions

None

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