cerca de 25% da tradução está concluída
Esta página contém uma lista de todos os tipos de argumentos de comando.
Edição Java[]
brigadier:bool[]
Deve ser um booleano (ou true oufalse).
Exemplos oficiais
truefalse
brigadier:double[]
Deve ser um no número de ponto de flutuação de precisão dupla.
Cada argumento duplo pode ter um valor mínimo e máximo personalizado.
A precisão varia ao longo da linha numérica; o valor absoluto máximo é de cerca de 1,8*10308.
Exemplos oficiais
01.2.5-1-.5-1234.56
Propriedades JSON na saída da sintaxe de comando
- properties: O objeto de propriedades raiz.
- max: O valor máximo desse argumento duplo.
- min: O valor mínimo desse argumento duplo.
brigadier:float[]
Deve ser um no número de formato de ponto flutuante de precisão única.
Cada tipo de argumento float pode ter um valor mínimo e máximo personalizado.
A precisão varia ao longo da linha numérica; o valor absoluto máximo é de cerca de 3,4*1038.
Exemplos oficiais
01.2.5-1-.5-1234.56
Propriedades JSON na saída da sintaxe de comando
- properties: O objeto de propriedades raiz.
- max: O valor máximo deste argumento float.
- min: O valor mínimo deste argumento float.
brigadier:integer[]
Deve ser um número inteiro de 32 bits. And it must be between -2147483648 and 2147483647 (inclusive).
Cada tipo de argumento inteiro pode ter um valor mínimo e máximo personalizado.
O alcance máximo é de −(231) a (231 − 1), ou de (−2.147.483.648) a (2.147.483.647).
Exemplos oficiais
0123-123
Propriedades JSON na saída de sintaxe de comando
- properties: O objeto de propriedades raiz.
- max: O valor máximo deste argumento inteiro.
- min: O valor mínimo deste argumento inteiro.
brigadier:long[]
Deve ser um de 64 bits.
Nota: Embora um tipo de argumento longo esteja presente em Brigadier, ele não é usado por Minecraft.
Cada tipo de argumento longo pode ter um valor mínimo e máximo personalizados.
O intervalo máximo é de −(263) a (263−1), ou de (−9,223,372,036,854,775,808) a (9,223,372,036,854,775,807).
Exemplos oficiais
0123-123
Propriedades JSON na saída de sintaxe de comando
- properties: O objeto de propriedades raiz.
- max: O valor máximo deste argumento longo.
- min: O valor mínimo deste argumento longo.
brigadier:string[]
Deve ser uma string.
Cada tipo de argumento de string pode aceitar uma única palavra (sem espaços), uma frase citável (uma única palavra ou string entre aspas) ou uma frase greedy (considerando o restante do comando como o argumento de string).
Exemplos oficiais
Única palavra
wordword_with_underscores
Frase citável
"quoted phrase"word""
Frase greedy
wordwords with spaces"and symbols"
Propriedades JSON na saída de sintaxe de comando
- properties: O objeto de propriedades raiz.
- type: O tipo deste argumento de string. Pode ser
word,phrase, ougreedy
- type: O tipo deste argumento de string. Pode ser
minecraft:angle[]
Deve ser um ângulo de guinada, medido em graus com número de flutuação. -180,0 para o norte, -90,0 para o leste, 0,0 para o sul, 90,0 para o oeste, a 179,9 para o oeste do norte, antes de voltar para -180,0. A notação de til pode ser usada para especificar uma rotação relativa ao ângulo de guinada do executor.
Exemplos oficiais
0~~-0.5
minecraft:block_pos[]
It deve ser um bloco de posição composto de <x>, <y> e <z>, cada um deles deve ser um número inteiro ou notação de til e circunflexo.
Exemplos oficiais
0 0 0~ ~ ~^ ^ ^^1 ^ ^-5~0.5 ~1 ~-5
minecraft:block_predicate[]
O formato dos parâmetros block_predicate é block_id[block_states]{data_tags}, em que estados de bloco e tags de dados podem ser omitidos quando não forem necessários.
block_idé necessário e deve estar no formato localização do recurso (se o namespace não estiver definido, o padrão éminecraft:).- Também pode ser a localização do recurso de uma marcação de bloco prefixada com
#, como#minecraft:planks.
- Também pode ser a localização do recurso de uma marcação de bloco prefixada com
- Estados de bloco estão dentro de
[], separados por vírgulas e devem ser propriedades/valores suportados pelos blocos. Eles são opcionais.minecraft:stone[doesntexist=purpleberry]não pode ser analisado, porquestonenão temdoesntexist.minecraft:redstone_wire[power=tuesday]não pode ser analisado, porque opowerderedstone_wireé um número entre 0 e 15.
- Marcação de data estão dentro de
{}. É opcional. - Ao testar o bloco, apenas os estados fornecidos são testados.
- Se o comando testar
redstone_wire[power=15], ele verifica apenas a potência, mas ignora outros estados, comonorth.
- Se o comando testar
Exemplos oficiais
stoneminecraft:stonestone[foo=bar]#stone#stone[foo=bar]{baz:nbt}
minecraft:block_state[]
The format of block_state parameters is block_id[block_states]{data_tags}, in which block states and data tags can be omitted when they are not needed.
block_idis required, and it should be in the format of resource location (if namespace isn't set it defaults tominecraft:).- Block states are inside
[], comma-separated and must be properties/values supported by the blocks. They are optional.minecraft:stone[doesntexist=purpleberry]is unparseable, becausestonedoesn't havedoesntexist.minecraft:redstone_wire[power=tuesday]is unparseable, becauseredstone_wire'spoweris a number between 0 and 15.
- Data tags are inside
{}. It's optional. - When placing blocks, any states provided are set, but anything omitted retain their default values, depending on the block type.
- If command sets
redstone_wire[power=15], it is setpowerto 15, butnorthis a default value (in this case, set tonone).
- If command sets
Exemplos oficiais
stoneminecraft:stonestone[foo=bar]foo{bar:baz}
minecraft:color[]
Must be a team color (reset or one of the 16 chat colors.)
Exemplos oficiais
redgreen
minecraft:column_pos[]
Deve ser uma coluna com coordenadas compostas por <x> e <z>, cada um deles deve ser um número inteiro ou notação de til e circunflexo.
Exemplos oficiais
0 0~ ~~1 ~-2
minecraft:component[]
Must be a raw JSON text.
Exemplos oficiais
"hello world"""{"text":"hello world"}[""]
minecraft:dimension[]
Must be a namespaced ID of a dimension.
Exemplos oficiais
minecraft:overworldminecraft:the_nether
minecraft:entity[]
Deve ser um nome de jogador, seletores de destino ou o UUID.
Each entity argument may place limits on the number of entities (single/multiple) selected or the type of entities (player/any entity) selected.
Exemplos oficiais
Player0123@e@e[type=foo]dd12be42-52a9-4a91-a8a1-11c01849e498
Propriedades JSON na saída de sintaxe de comando
- properties: The root properties object.
- amount: The amount of entities that can be selected. Can be
singleormultiple. - type: The target entity type. Can be
playersorentities.
- amount: The amount of entities that can be selected. Can be
minecraft:entity_anchor[]
Deve ser qualquer um eyes ou feet.
Exemplos oficiais
eyesfeet
minecraft:float_range[]
Must be a range acceptable for float values. (e.g. 0.1 - exact match of 0.1. ..0.1 - less than or equal to 0.1. 0.1.. - more than or equal to 0.1. 0.1..1 - between 0.1 and 1, inclusive.)
Exemplos oficiais
0..5.20-5.4-100.76....100
minecraft:function[]
Isso deve ser um ID de espaço de nome, que se refere a uma única função ou prefixada com um #, que se refere a uma função de tag.
Exemplos oficiais
foofoo:bar#foo
minecraft:game_profile[]
Must be a collection of game profiles (player profiles), which can be a player name (must be a real one if the server is in online mode), or a player-type target selector.
Exemplos oficiais
Player0123dd12be42-52a9-4a91-a8a1-11c01849e498@e
minecraft:gamemode[]
Arg desc: Illegal parameters
Exemplos oficiais
survivalcreative
minecraft:heightmap[]
Arg desc: Illegal parameters
Exemplos oficiais
world_surfaceocean_floor
minecraft:int_range[]
Must be a range acceptable for integer values. (e.g. 0 - exact match of 0. ..0 - less than or equal to 0. 0.. - more than or equal to 0. 0..1 - between 0 and 1, inclusive.)
Exemplos oficiais
0..50-5-100....100
minecraft:item_predicate[]
The format of item_predicate parameters is item_id{data_tags}, in which data tags can be omitted when not needed.
item_idis required, and it should be in the format of resource location (if namespace isn't set it defaults tominecraft:).- It can also be the resource location of a block tag or item tag with the prefix of
#, such as#minecraft:planks.
- It can also be the resource location of a block tag or item tag with the prefix of
- Data tags are inside
{}. It's optional.- When clear or test for item, only the states provided are tested.
Exemplos oficiais
stickminecraft:stick#stick#stick{foo:bar}
minecraft:item_slot[]
Must be a string notation that refer to certain slots in the inventory.
Exemplos oficiais
container.512[sic]weapon
minecraft:item_stack[]
The format of item_stack parameters is item_id{data_tags}, in which data tags can be omitted when not needed.
item_idis required, and it should be in the format of resource location (if namespace isn't set it defaults tominecraft:).- Data tags are inside
{}. It's optional. - When giving items, any states provided are set, but anything omitted retain their default values, depending on the item type.
Exemplos oficiais
stickminecraft:stickstick{foo:bar}
minecraft:message[]
Must be a plain text. Can include spaces as well as target selectors. The game replaces entity selectors in the message with the list of selected entities' names, which is formatted as "name1 and name2" for two entities, or "name1, name2, ... and namen" for n entities.
Exemplos oficiais
Hello world!foo@eHello @p :)
minecraft:nbt_compound_tag[]
Must be a compound NBT in SNBT format.
Exemplos oficiais
{}{foo:bar}
minecraft:nbt_path[]
Must be an NBT path.
An example
foo.bar[0]."A [crazy name]".baz.
foobar- <the first list element>
A [crazy name]baz
- <the second list element>
- <the first list element>
Exemplos oficiais
foofoo.barfoo[0][0][]{foo:bar}
minecraft:nbt_tag[]
Must be an NBT tag of any type in SNBT format.
Exemplos oficiais
00b0l0.0"foo"{foo:bar}
minecraft:objective[]
Must be a scoreboard objective name.
Exemplos oficiais
foo*012
minecraft:objective_criteria[]
Must be a scoreboard objective criterion.
Exemplos oficiais
foofoo.bar.bazminecraft:foo
minecraft:operation[]
Must be a arithmetic operator for /scoreboard.
Valid values include = (assignment), += (addition), -= (subtraction), *= (multiplication), /= (floor division), %= (modulus), >< (swapping), < (choosing minimum) and > (choosing maximum).
Exemplos oficiais
=><
minecraft:particle[]
It must be a namespaced ID of a particle followed by particle parameters that are particle-specific.
dustrequires three color channel parameters to be set along with the name, representing red, green, and blue, each being a value in the range 0 to 1; and an additional parameter representing size. For example:/particle dust 1.0 0.5 0.5 1.0creates a pink particle at regular size. If one or more values are greater than 1, the particles change their colors. The greater the values the greater is the range of different colors.blockandfalling_dusthas a parameter innamespaced_ID[block_state=foo]format to specify a block, in which block states can be omitted when unneeded. For example:/particle block minecraft:grass_block[snowy=true]itemrequires a namespaced ID of an item as a parameter. For example:/particle item minecraft:apple
Exemplos oficiais
foofoo:barparticle with options
minecraft:resource[]
Deve ser uma localização de recurso.
Exemplos oficiais
foofoo:bar012
Propriedades JSON na saída de sintaxe de comando
- properties: The root properties object.
- registry: The registry ID.
minecraft:resource_key[]
Arg desc: Illegal parameters
Exemplos oficiais
foofoo:bar012
Propriedades JSON na saída de sintaxe de comando
- properties: The root properties object.
- registry: The registry ID.
minecraft:resource_location[]
Deve ser um ID de espaço de nome.
Exemplos oficiais
foofoo:bar012
minecraft:resource_or_tag[]
Deve ser uma localização de recurso ou uma marcação.
Exemplos oficiais
foofoo:bar012#skeletons#minecraft:skeletons
Propriedades JSON na saída de sintaxe de comando
- properties: The root properties object.
- registry: The registry ID.
minecraft:rotation[]
Deve ser uma rotação com duplo elementos numéricos, incluindo guinada e inclinação, medidos em graus.
- Para a rotação horizontal (guinada), -180,0 para norte, -90,0 para leste, 0,0 para sul, 90,0 para oeste, até 179,9 para oeste do norte, antes de voltar para -180,0.
- Para a rotação vertical (inclinação), -90,0 para direto até 90,0 para direto para baixo.
or the target's previous rotatio.
Exemplos oficiais
0 0~ ~~-5 ~5
minecraft:score_holder[]
Must be a selection of score holders. It may be either a target selector, a player name, a UUID, or * for all score holders.
Each score holder argument may specify if it can select only one score holder or multiple score holders.
Exemplos oficiais
Player0123*@e
Propriedades JSON na saída de sintaxe de comando
- properties: The root properties object.
- amount: The amount of score holders that can be selected. Can be
singleormultiple.
- amount: The amount of score holders that can be selected. Can be
minecraft:scoreboard_slot[]
Must be a scoreboard display slot.
Exemplos oficiais
sidebarfoo.bar
minecraft:swizzle[]
Must be a collection of axes. Axes can be declared in any order, but they cannot duplicate.
Exemplos oficiais
xyzx
minecraft:team[]
Must be a team name.
Exemplos oficiais
foo123
minecraft:time[]
Must be a time in Minecraft. It must be a single-precision floating point number suffixed with a unit. Units include:
d: an in-game day, 24000 gameticks;s: a second, 20 gameticks;t(default and omitable): a single gametick; the default unit.
The time is set to the closest integer tick after unit conversion. For example. .5d is same as 12000 ticks.
Exemplos oficiais
0d0s0t0
Propriedades JSON na saída de sintaxe de comando
- properties: O objeto de propriedades raiz.
- min: O tempo mínimo em tiques do jogo.
minecraft:uuid[]
Must be a UUID in the hyphenated hexadecimal format. Allowed characters include:
-A-Fa-f0-9
Exemplos oficiais
dd12be42-52a9-4a91-a8a1-11c01849e498
minecraft:vec2[]
Deve ser uma coordenada bidimensional com elementos de número de ponto flutuante. Aceita notação de til e circunflexo.
Exemplos oficiais
0 0~ ~0.1 -0.5~1 ~-2
minecraft:vec3[]
Devem ser coordenadas tridimensionais com elementos numéricos de ponto flutuante. Aceita tilde and caret notations.
Exemplos oficiais
0 0 0~ ~ ~^ ^ ^^1 ^ ^-50.1 -0.5 .9~0.5 ~1 ~-5
Bedrock Edition[]
BlockStateCommandParam[]
Deve ser um argumento estado de bloco como["<state1>":<value1>,"<state2>":<value2>,...]. Por exemplo: ["old_leaf_type":"birch","persistent_bit":true].
CommandIntegerRange[]
Must be a range acceptable for integer values. (e.g. 0 - exact match of 0. ..0 - less than or equal to 0. 0.. - more than or equal to 0. 0..1 - between 0 and 1, inclusive.)
CommandFilePath[]
It must be of the format path/to/function/file, which refers to a function located at [behavior_pack]/functions/path/to/function/file.mcfunction.
CommandMessage[]
Must be a plain text. Can include spaces as well as target selectors. The game replaces entity selectors in the message with the list of selected entities' names, which is formatted as "name1 and name2" for two entities, or "name1, name2, ... and namen" for n entities. @here can be used to mention all players.
CommandOperator[]
Must be a arithmetic operator for /scoreboard.
Valid values include = (assignment), += (addition), -= (subtraction), *= (multiplication), /= (floor division), %= (modulus), >< (swapping), < (choosing minimum) and > (choosing maximum).
CommandPosition[]
It Deve ser uma coordenada tridimensional composta de <x>, <y> e <z>, cada um dos quais deve ser um número de ponto flutuante ou notação de til e circunflexo.
CommandPositionFloat[]
Devem ser coordenadas tridimensionais com elementos numéricos de ponto flutuante. Aceita tilde and caret notations.
CommandRawText[]
É uma string de frase gananciosa (tomando o resto do comando como argumento de string).
CommandSelector<Actor>[]
Representa entidades. Deve ser um nome de jogador ou seletores de destino.
CommandSelector<Player>[]
Representa jogadores. Deve ser um nome de jogador ou seletores de destino.
CommandWildcardInt[]
Deve ser um número inteiro de 32 bits ou um asterisco (*) para representar MIN_INT(-2.147.483.648).
float[]
Deve ser um no número de formato de ponto flutuante de precisão única.
int[]
Deve ser um número inteiro de 32 bits.
Json::Value[]
Must be a JSON Object.
RelativeFloat[]
Must be a float or a tilde and caret notation.
std::basic_string[]
Deve ser uma string.
std::unique_ptr<Command>[]
Representa um comando completo.
WildcardCommandSelector<Actor>[]
Must be a selection of score holders. It may be either a target selector, a player name, a scoreboard ID for an entity, or * for all score holders.
Enum[]
Deve ser uma string sem aspas e sem espaços.
Histórico[]
| Edição Java | |||||
|---|---|---|---|---|---|
| 1.13 | 17w45a | Command arguments are now handled with Brigadier. | |||
| 1.14 | 19w08a | Now allows single quotes for strings in commands.[1] | |||
| 1.16 | 20w17a | Added minecraft:uuid argument type. | |||
| 1.16.2 | 20w29a | Added angle arguments to /spawnpoint and /setworldspawn, with a argument type that is not registered.[2] | |||
| 20w30a | Added minecraft:angle argument type.
| ||||
Now /spawnpoint and /setworldspawn use this argument type.[2] | |||||
| ? | Now minecraft:dimension argument type checks whether the dimension exists during execution instead of parsing. | ||||
| 1.17 | 20w45a | Now minecraft:angle argument type does not accept NaN or Infinite.[3] | |||
| 21w10a | Now minecraft:block_pos arguments in /spawnpoint and /setworldspawn require <x> and <z> to be in the range of [-30000000, 30000000), and <y> to be in the range of [-20000000, 20000000) when executing.[4] | ||||
| 1.18 | 21w37a | Removed 16-character limit in minecraft:objective argument type.[5] | |||
| 1.18.2 | Pre-release 3 | Added minecraft:resource and minecraft:resource_or_tag argument types.
| |||
Now minecraft:resource_location is used only for pack contents, while minecraft:resource is used for registry entries. | |||||
| 1.19 | 22w11a | Now minecraft:item_predicate and minecraft:block_predicate require tag to exist when parsing instead of executing.[6] | |||
| 22w19a | Added minecraft:template_mirror and minecraft:template_rotation argument types. | ||||
| 1.19.3 | 22w42a | Added minecraft:resource_key and minecraft:resource_or_tag_key argument types, which are used for reloadable registry entries (i.e. registered pack contents).
| |||
Now minecraft:resource and minecraft:resource_or_tag are used only for un-reloadable registry entries. | |||||
Removed minecraft:mob_effect, minecraft:entity_summon and minecraft:item_enchantment argument types. Replaced by minecraft:resource. | |||||
| 22w45a | Added minecraft:gamemode argument type. | ||||
| Em breve na Edição Java | |||||
| 1.19.4 | 23w03a | Added min property to minecraft:time argument type.[7]
| |||
The min value of minecraft:time is always 0 before this update. | |||||
| 1.19.4-pre1 | Added minecraft:heightmap argument type. | ||||