Commands/recipe

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Java Edition.
recipe
Restrictions

Operator

First introduced

Java Edition 1.12 (Java Edition 17w13a)

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

Syntax
recipe <give|take> [player] <name|*>
Arguments
give or take
If give, the recipe will be given (unlocked) for the player. If take, the recipe will be taken (locked) for the player.
player
Specifies the player to give or take the recipe from. May be a player name or a target selector.
name
The item ID of the recipe to give or take. If you specify *, it will give or take all recipes from that player.
Result
Fails if the arguments are not specified correctly, if player fails to resolve to one or more online players, or if no new recipes are given or taken.
On success, returns the number of recipes given or taken.

History[edit]

Java Edition
1.1217w13aAdded /recipe.

See also[edit]

/gamerule doLimitedCrafting – Whether players should only be able to craft recipes that they've unlocked first.