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
recipe is a cheat on BE and JE
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision by the same user not shown)
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=[[Minecraft:Cheat]] only
|others=Cheat only
}}
}}


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


== Syntax ==  
== Syntax ==  


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


== Arguments ==
== Arguments ==


{{argument|target|entity|player: target|CommandSelector<Player>}}
{{MC/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.
:{{arg desc|je=entity|amount=multiple|type=players|be=player}}
:{{MC/Arg desc|je=entity|amount=multiple|type=players|be=player}}


{{argument|recipe|resource_location|recipe: string|basic_string}}  
{{MC/Argument|recipe|resource_location|recipe: string|basic_string}}  
:Specifies a recipe to give or take.
:Specifies a recipe to give or take.
:{{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].
:{{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].


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


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


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


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{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.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.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|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|dev=Preview 1.20.20.21|{{cmd|recipe|link=none}} is no longer behind the "Recipe Unlocking" experimental toggle.}}
|{{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|||dev=Preview 1.20.20.22|Renamed the <code>''victim'': target</code> argument to <code>''player'': target</code>.}}
|{{MC/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]]
*{{cmd|gamerule doLimitedCrafting}} – Whether players should only be able to [[Minecraft:craft]] recipes that they have unlocked first.
*{{MC/Cmd|gamerule doLimitedCrafting}} – Whether players should only be able to craft recipes that they have unlocked first.


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


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


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

Latest revision as of 20:12, 9 April 2026

Template:Infobox command

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

Syntax

recipe give <targets> * (
  1. REDIRECT Template:Edition

Template:Rcat)

recipe give <player: target> * (
  1. REDIRECT Template:Edition

Template:Rcat)

recipe give <player: target> "*" (
  1. REDIRECT Template:Edition

Template:Rcat)

Gives (unlocks) all recipes to the player.
recipe take <targets> * (
  1. REDIRECT Template:Edition

Template:Rcat)

recipe take <player: target> * (
  1. REDIRECT Template:Edition

Template:Rcat)

recipe take <player: target> "*" (
  1. REDIRECT Template:Edition

Template:Rcat)

Takes (locks) all recipes from the player.
recipe give <targets> <recipe> (
  1. REDIRECT Template:Edition

Template:Rcat)

recipe give <player: target> <recipe: string> (
  1. REDIRECT Template:Edition

Template:Rcat)

Gives (unlocks) a specified recipe to the player.
recipe take <targets> <recipe> (
  1. REDIRECT Template:Edition

Template:Rcat)

recipe take <player: target> <recipe: string> (
  1. REDIRECT Template:Edition

Template:Rcat)

Takes (locks) a specified recipe from the player.

Arguments

Template:El<target>: entity
Template:El: player: target: CommandSelector<Player>

Specifies the player(s) to give or take the recipe from.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|entity}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

Template:El<recipe>: resource_location
Template:El: recipe: string: basic_string

Specifies a recipe to give or take.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|resource_location}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} in Template:Editions, 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

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the total number of recipes given to/taken from each player.}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|Any}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} Template:Output table {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of players whose recipe is newly unlocked/locked.}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/recipe ... <recipe: string>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

  1. REDIRECT Template:Command

Template:Redr – Whether players should only be able to craft recipes that they have unlocked first.

External links

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

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