Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/recipe: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 4: Line 4:
* 2 {{only|java|short=1}}
* 2 {{only|java|short=1}}
* 1 {{only|bedrock|short=1}}
* 1 {{only|bedrock|short=1}}
|others=Cheat only
|others=[[Minecraft:Cheat]] only
}}
}}


Gives or takes (unlocks or locks) recipes for players.
Gives or takes (unlocks or locks) [[Minecraft:recipes]] for players.


== Syntax ==  
== Syntax ==  


:<code>recipe give <targets> *</code> ({{MC/El|je}})
:<code>recipe give <targets> *</code> ({{el|je}})
:<code>recipe give <player: target> *</code> ({{MC/El|be}})
:<code>recipe give <player: target> *</code> ({{el|be}})
:<code>recipe give <player: target> "*"</code> ({{MC/El|be}})
:<code>recipe give <player: target> "*"</code> ({{el|be}})
::Gives (unlocks) all recipes to the player.
::Gives (unlocks) all recipes to the player.
:<code>recipe take <targets> *</code> ({{MC/El|je}})
:<code>recipe take <targets> *</code> ({{el|je}})
:<code>recipe take <player: target> *</code> ({{MC/El|be}})
:<code>recipe take <player: target> *</code> ({{el|be}})
:<code>recipe take <player: target> "*"</code> ({{MC/El|be}})
:<code>recipe take <player: target> "*"</code> ({{el|be}})
::Takes (locks) all recipes from the player.
::Takes (locks) all recipes from the player.
:<code>recipe give <targets> <recipe></code> ({{MC/El|je}})
:<code>recipe give <targets> <recipe></code> ({{el|je}})
:<code>recipe give <player: target> <recipe: string></code> ({{MC/El|be}})
:<code>recipe give <player: target> <recipe: string></code> ({{el|be}})
::Gives (unlocks) a specified recipe to the player.
::Gives (unlocks) a specified recipe to the player.
:<code>recipe take <targets> <recipe></code> ({{MC/El|je}})
:<code>recipe take <targets> <recipe></code> ({{el|je}})
:<code>recipe take <player: target> <recipe: string></code> ({{MC/El|be}})
:<code>recipe take <player: target> <recipe: string></code> ({{el|be}})
::Takes (locks) a specified recipe from the player.
::Takes (locks) a specified recipe from the player.


== Arguments ==
== Arguments ==


{{MC/Argument|target|entity|player: target|CommandSelector<Player>}}
{{argument|target|entity|player: target|CommandSelector<Player>}}
:Specifies the player(s) to give or take the recipe from.
:Specifies the player(s) to give or take the recipe from.
:{{MC/Arg desc|je=entity|amount=multiple|type=players|be=player}}
:{{arg desc|je=entity|amount=multiple|type=players|be=player}}


{{MC/Argument|recipe|resource_location|recipe: string|basic_string}}  
{{argument|recipe|resource_location|recipe: string|basic_string}}  
:Specifies a recipe to give or take.
:Specifies a recipe to give or take.
:{{MC/Arg desc|je=resource_location}} {{MC/In|be}}, must be the ID of a recipe (namespace cannot be omitted or added), see [https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/recipe?view=minecraft-bedrock-stable#values the official document].
:{{arg desc|je=resource_location}} {{IN|be}}, must be the ID of a recipe (namespace cannot be omitted or added), see [https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/recipe?view=minecraft-bedrock-stable#values the official document].


== Result ==
== Result ==
Line 50: Line 50:
== Output ==
== Output ==


{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|On success|1|1|the total number of recipes given to/taken from each player.}}
{{Output table|On success|1|1|the total number of recipes given to/taken from each player.}}
{{MC/Output table|cmd=|edition=be|On fail|0}}
{{Output table|cmd=|edition=be|On fail|0}}
{{Output table|cmd=/recipe ... <*{{!}}"*">|On success|the number of specified players.}}
{{Output table|cmd=/recipe ... <*{{!}}"*">|On success|the number of specified players.}}
{{MC/Output table|cmd=/recipe ... <recipe: string>|On success|the number of players whose recipe is newly unlocked/locked.}}
{{Output table|cmd=/recipe ... <recipe: string>|On success|the number of players whose recipe is newly unlocked/locked.}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.12|dev=17w13a|Added {{MC/Cmd|recipe|link=none}}.}}
|{{HistoryLine||1.12|dev=17w13a|Added {{cmd|recipe|link=none}}.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.20.10|exp=Recipe Unlocking|dev=Preview 1.20.10.21|Added {{MC/Cmd|recipe|link=none}} behind the "Recipe Unlocking" experimental toggle.}}
|{{HistoryLine||1.20.10|exp=Recipe Unlocking|dev=Preview 1.20.10.21|Added {{cmd|recipe|link=none}} behind the "Recipe Unlocking" [[Minecraft:experimental]] toggle.}}
|{{HistoryLine||1.20.30|exp=Recipe Unlocking|dev=Preview 1.20.20.20|Updated the syntax to match {{MC/JE}}.|The recipes are now suggested by the command auto-complete.|Now an output message appears after the command is executed.}}
|{{HistoryLine||1.20.30|exp=Recipe Unlocking|dev=Preview 1.20.20.20|Updated the syntax to match {{JE}}.|The recipes are now suggested by the [[Minecraft:command]] auto-complete.|Now an output message appears after the command is executed.}}
|{{HistoryLine||1.20.30|dev=Preview 1.20.20.21|{{MC/Cmd|recipe|link=none}} is no longer behind the "Recipe Unlocking" experimental toggle.}}
|{{HistoryLine||1.20.30|dev=Preview 1.20.20.21|{{cmd|recipe|link=none}} is no longer behind the "Recipe Unlocking" experimental toggle.}}
|{{MC/HistoryLine|||dev=Preview 1.20.20.22|Renamed the <code>''victim'': target</code> argument to <code>''player'': target</code>.}}
|{{HistoryLine|||dev=Preview 1.20.20.22|Renamed the <code>''victim'': target</code> argument to <code>''player'': target</code>.}}
}}
}}


Line 77: Line 77:


*[[Minecraft:Knowledge Book]]
*[[Minecraft:Knowledge Book]]
*{{MC/Cmd|gamerule doLimitedCrafting}} – Whether players should only be able to craft recipes that they have unlocked first.
*{{cmd|gamerule doLimitedCrafting}} – Whether players should only be able to [[Minecraft:craft]] recipes that they have unlocked first.


== External links ==
== External links ==
Line 84: Line 84:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/recipe
[[Minecraft:de:Befehl/recipe]]
es:Comandos/recipe
[[Minecraft:es:Comandos/recipe]]
ja:コマンド/recipe
[[Minecraft:fr:Commandes/recipe]]
pt:Comandos/recipe
[[Minecraft:ja:コマンド/recipe]]
ru:Команды консоли/recipe
[[Minecraft:pt:Comandos/recipe]]
zh:命令/recipe
[[Minecraft:ru:Команды консоли/recipe]]
[[Minecraft:zh:命令/recipe]]

Latest revision as of 11:08, 10 May 2026

Template:Infobox command

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

Syntax

recipe give <targets> * (Template:El)
recipe give <player: target> * (Template:El)
recipe give <player: target> "*" (Template:El)
Gives (unlocks) all recipes to the player.
recipe take <targets> * (Template:El)
recipe take <player: target> * (Template:El)
recipe take <player: target> "*" (Template:El)
Takes (locks) all recipes from the player.
recipe give <targets> <recipe> (Template:El)
recipe give <player: target> <recipe: string> (Template:El)
Gives (unlocks) a specified recipe to the player.
recipe take <targets> <recipe> (Template:El)
recipe take <player: target> <recipe: string> (Template:El)
Takes (locks) a specified recipe from the player.

Arguments

Template:Argument

Specifies the player(s) to give or take the recipe from.
Template:Arg desc

Template:Argument

Specifies a recipe to give or take.
Template:Arg desc Template:IN, must be the ID of a recipe (namespace cannot be omitted or added), see the official document.

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/recipe Minecraft:es:Comandos/recipe Minecraft:fr:Commandes/recipe Minecraft:ja:コマンド/recipe Minecraft:pt:Comandos/recipe Minecraft:ru:Команды консоли/recipe Minecraft:zh:命令/recipe