Command argument types
The 62 argument types of the vanilla 26.3 command_argument_type registry (protocol 777), as the server’s Brigadier engine implements them (src/game/commands). Plugin commands built with the v1 Brigadier API use these types; the current flat Commands.Register API gives you the raw argument strings instead.
| Wire id | Type | Description |
|---|---|---|
| 0 | brigadier:bool |
true or false. |
| 1 | brigadier:float |
Single-precision number, optional min/max. |
| 2 | brigadier:double |
Double-precision number, optional min/max. |
| 3 | brigadier:integer |
Signed 32-bit integer, optional min/max. |
| 4 | brigadier:long |
Signed 64-bit integer, optional min/max. |
| 5 | brigadier:string |
A word, a quoted phrase, or the rest of the line (single word / quotable phrase / greedy phrase). |
| 6 | minecraft:entity |
An entity selector or player name; single or multiple, players only or any entity. |
| 7 | minecraft:game_profile |
A player profile: a name, a selector or a UUID (may name offline players). |
| 8 | minecraft:block_pos |
Integer block coordinates; supports ~ relative and ^ local coordinates. |
| 9 | minecraft:column_pos |
X and Z block coordinates. |
| 10 | minecraft:vec3 |
Three double coordinates (x y z), with ~ and ^. |
| 11 | minecraft:vec2 |
Two double coordinates (x z). |
| 12 | minecraft:block_state |
A block id with optional [properties] and {nbt}. |
| 13 | minecraft:block_predicate |
A block state or #tag with optional [properties] and {nbt}. |
| 14 | minecraft:item_stack |
An item id with optional [component=value] list. |
| 15 | minecraft:item_predicate |
An item id, #tag or * with component tests. |
| 16 | minecraft:team_color |
|
| 17 | minecraft:hex_color |
An RRGGBB hex colour. |
| 18 | minecraft:component |
A text component as SNBT or JSON. |
| 19 | minecraft:style |
A text component style. |
| 20 | minecraft:message |
The rest of the line, with entity selectors expanded. |
| 21 | minecraft:nbt_compound_tag |
A compound tag in SNBT. |
| 22 | minecraft:nbt_tag |
Any NBT tag in SNBT. |
| 23 | minecraft:nbt_path |
A path into an NBT structure. |
| 24 | minecraft:objective |
The name of a scoreboard objective. |
| 25 | minecraft:objective_criteria |
A scoreboard criterion (dummy, health, stat types …). |
| 26 | minecraft:operation |
A scoreboard operation (=, +=, <, > …). |
| 27 | minecraft:particle |
A particle id with its options. |
| 28 | minecraft:angle |
A yaw angle, with ~ for relative. |
| 29 | minecraft:rotation |
Yaw and pitch (two angles). |
| 30 | minecraft:scoreboard_slot |
A scoreboard display slot. |
| 31 | minecraft:score_holder |
An entity, selector, name or * that holds scores. |
| 32 | minecraft:swizzle |
A combination of x, y and z axes. |
| 33 | minecraft:team |
The name of a team. |
| 34 | minecraft:item_slot |
One inventory slot name (container.0, armor.head …). |
| 35 | minecraft:item_slots |
A slot range name such as container.* or hotbar.*. |
| 36 | minecraft:resource_location |
A namespaced id such as minecraft:stone. |
| 37 | minecraft:function |
A function id or #tag. |
| 38 | minecraft:entity_anchor |
feet or eyes. |
| 39 | minecraft:int_range |
An integer range such as 1..5. |
| 40 | minecraft:float_range |
A decimal range such as 0.5..2. |
| 41 | minecraft:dimension |
A dimension id. |
| 42 | minecraft:gamemode |
survival, creative, adventure or spectator. |
| 43 | minecraft:time |
A duration with an optional unit (t, s, d). |
| 44 | minecraft:resource_or_tag |
A registry entry id or #tag. |
| 45 | minecraft:resource_or_tag_key |
|
| 46 | minecraft:resource |
A registry entry id. |
| 47 | minecraft:resource_key |
|
| 48 | minecraft:resource_selector |
|
| 49 | minecraft:template_mirror |
none, left_right or front_back. |
| 50 | minecraft:template_rotation |
none, clockwise_90, 180 or counterclockwise_90. |
| 51 | minecraft:heightmap |
A heightmap type. |
| 52 | minecraft:loot_table |
A loot table id or inline definition. |
| 53 | minecraft:loot_predicate |
|
| 54 | minecraft:loot_modifier |
|
| 55 | minecraft:context_float_provider |
|
| 56 | minecraft:context_int_provider |
|
| 57 | minecraft:slot_source |
|
| 58 | minecraft:dialog |
|
| 59 | minecraft:feature |
|
| 60 | minecraft:swing_animation |
|
| 61 | minecraft:uuid |
A UUID. |