/recipe Command in Minecraft Java Edition

Give or Take Player Recipes

Java EditionItems & InventoryPermission: Level 2Bedrock version →

The /recipe command lets you control which recipes players have unlocked in Minecraft Java Edition. You can grant specific recipes, unlock every single recipe at once, or remove recipes that a player already knows.

Server operators and map makers use this command to guide player progression or set up custom survival rules. It requires permission level 2, which means cheats must be turned on in single-player worlds.

Syntax (Java 26.3, 4 forms)

  1. /recipe give <targets> *
  2. /recipe give <targets> <recipe>
  3. /recipe take <targets> *
  4. /recipe take <targets> <recipe>

The forms you will use most

/recipe give <targets> *
Unlocks every available recipe for the chosen players.
/recipe give <targets> <recipe>
Unlocks one specific recipe for the chosen players.
/recipe take <targets> *
Removes all unlocked recipes from the chosen players.
/recipe take <targets> <recipe>
Removes one specific recipe from the chosen players.

Arguments

ArgumentTypeWhat it means
<targets>target selector
players only
Specifies the target players using a player name, a UUID, or a player-only target selector like @p, @a, or @s.
<recipe>registry key
recipe
Specifies the registry ID of the recipe you want to give or take.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Bedrock Edition also includes a /recipe command, which uses the syntax /recipe give <player: target> <recipe: UnlockableRecipeValues>.

See /recipe in Bedrock Edition →

FAQ

How do I unlock all recipes in Minecraft at once?

Run the command /recipe give @s * to immediately unlock every recipe for yourself.

How do I remove all recipes from a player?

Use the command /recipe take <targets> * and replace the target with the player's name or a selector like @a.

When was the /recipe command added to Java Edition?

The /recipe command was already available in Java Edition 1.13 and has remained unchanged through version 26.3.

Related commands

/clear/enchant/give/item/loot