Minecraft Wiki
Advertisement
Lang-pt
A tradução da página está em andamento 
Sinta-se livre para ajudar a Minecraft Wiki em Português!
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).

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.

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.

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).

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).

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).

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.

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.

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.
  • 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, porque stone não tem doesntexist.
    • minecraft:redstone_wire[power=tuesday] não pode ser analisado, porque o power de redstone_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, como north.

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_id is required, and it should be in the format of resource location (if namespace isn't set it defaults to minecraft:).
  • Block states are inside [], comma-separated and must be properties/values supported by the blocks. They are optional.
    • minecraft:stone[doesntexist=purpleberry] is unparseable, because stone doesn't have doesntexist.
    • minecraft:redstone_wire[power=tuesday] is unparseable, because redstone_wire's power is 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 set power to 15, but north is a default value (in this case, set to none).

minecraft:color[]

Must be a team color (reset or one of the 16 chat colors.)

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.

minecraft:component[]

Must be a raw JSON text.

minecraft:dimension[]

Must be a namespaced ID of a dimension.

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.

minecraft:entity_anchor[]

Deve ser qualquer um eyes ou feet.

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.)

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.

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.

minecraft:gamemode[]

Arg desc: Illegal parameters

minecraft:heightmap[]

Arg desc: Illegal parameters

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.)

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_id is required, and it should be in the format of resource location (if namespace isn't set it defaults to minecraft:).
    • It can also be the resource location of a block tag or item tag with the prefix of #, such as #minecraft:planks.
  • Data tags are inside {}. It's optional.
    • When clear or test for item, only the states provided are tested.

minecraft:item_slot[]

Must be a string notation that refer to certain slots in the inventory.

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_id is required, and it should be in the format of resource location (if namespace isn't set it defaults to minecraft:).
  • 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.

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.

minecraft:nbt_compound_tag[]

Must be a compound NBT in SNBT format.

minecraft:nbt_path[]

Must be an NBT path.

minecraft:nbt_tag[]

Must be an NBT tag of any type in SNBT format.

minecraft:objective[]

Must be a scoreboard objective name.

minecraft:objective_criteria[]

Must be a scoreboard objective criterion.

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).

minecraft:particle[]

It must be a namespaced ID of a particle followed by particle parameters that are particle-specific.

  • dust requires 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.0 creates 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.
  • block and falling_dust has a parameter in namespaced_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]
  • item requires a namespaced ID of an item as a parameter. For example: /particle item minecraft:apple

minecraft:resource[]

Deve ser uma localização de recurso.

minecraft:resource_key[]

Arg desc: Illegal parameters

minecraft:resource_location[]

Deve ser um ID de espaço de nome.

minecraft:resource_or_tag[]

Deve ser uma localização de recurso ou uma marcação.

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.

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.

minecraft:scoreboard_slot[]

Must be a scoreboard display slot.

minecraft:swizzle[]

Must be a collection of axes. Axes can be declared in any order, but they cannot duplicate.

minecraft:team[]

Must be a team name.

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.

minecraft:uuid[]

Must be a UUID in the hyphenated hexadecimal format. Allowed characters include:

  • -
  • A-F
  • a-f
  • 0-9

minecraft:vec2[]

Deve ser uma coordenada bidimensional com elementos de número de ponto flutuante. Aceita notação de til e circunflexo.

minecraft:vec3[]

Devem ser coordenadas tridimensionais com elementos numéricos de ponto flutuante. Aceita tilde and caret notations.

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.

Referências[]

Advertisement