/recipe
Gives or takes recipe knowledge from players. Affects which recipes appear in the recipe book.
Syntax
/recipe <give|take> <targets> <recipe|*>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | literal | Required | give or take. |
| targets | entity | Required | The player(s) to affect. |
| recipe | resource | Required | The recipe ID to grant/revoke, or * for all recipes. |
Examples
/recipe give @s *Unlocks all recipes in the recipe book for yourself.
/recipe take @a *Removes all recipe knowledge from all players.
/recipe give @p minecraft:diamond_swordUnlocks the diamond sword recipe for the nearest player.
Common Mistakes
- Confusing recipe unlock with item giving, /recipe only affects the recipe book, not the player's inventory.
- Using the item name instead of the recipe ID, some items have multiple recipes with different IDs.
Notes
Recipes are unlocked in the recipe book UI. Players can still craft items without unlocking recipes by placing items in the crafting grid manually.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting