Commands/recipe

From Minecraft Wiki
Jump to: navigation, search
recipe
Restrictions

Operator

First introduced

Java Edition 1.12 (17w13a)

Information icon.svg
This feature is exclusive to Java Edition.

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

Syntax[edit]

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[edit]

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

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

<recipe>: resource_location

Must be a namespaced ID.
Specifies a recipe to give or take.

Result[edit]

CommandTriggerJava Edition
anythe arguments are not specified correctly Unparseable
if <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[edit]

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

History[edit]

Java Edition
1.1217w13aAdded /recipe.

See also[edit]

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