Skip to content

Argument Types

Ontey6 edited this page Sep 17, 2026 · 2 revisions

A substantial part of this is AI generated.

Identifier (Key) Description Example (YAML)
word Parses a single word string with no spaces.
type: "word"
# argument: {}
string Parses a quoted string or a single word.
type: "string"
# argument: {}
varargs_string Greedily parses all remaining input text as a single string.
type: "varargs_string"
# argument: {}
boolean Parses a boolean true or false value.
type: "boolean"
# argument: {}
integer Parses a whole number within an optional min/max range.
type: "integer"
argument:
  min: 1 # Optional minimum
  max: 100 # Optional maximum
long Parses a 64-bit integer within an optional min/max range.
type: "long"
argument:
  min: 1 # Optional minimum
  max: 1000000 # Optional maximum
float Parses a single-precision floating-point number within an optional min/max range.
type: "float"
argument:
  min: 0.0 # Optional minimum
  max: 1.0 # Optional maximum
double Parses a double-precision floating-point number within an optional min/max range.
type: "double"
argument:
  min: 0.0 # Optional minimum
  max: 100.0 # Optional maximum
entity Target selector that resolves to a single entity.
type: "entity"
# argument: {}
entities Target selector that resolves to one or multiple entities.
type: "entities"
# argument: {}
player Target selector or name that resolves to a single online player.
type: "player"
# argument: {}
players Target selector that resolves to one or multiple online players.
type: "players"
# argument: {}
player_profiles Target selector or name resolving to player profiles (works for offline players).
type: "player_profiles"
# argument: {}
block_position Block coordinate triplet (x, y, z) formatted as integers.
type: "block_position"
# argument: {}
column_block_position 2D column block coordinate pair (x, z) formatted as integers.
type: "column_block_position"
# argument: {}
block_in_world_predicate A predicate test matching block states or tags in the world.
type: "block_in_world_predicate"
# argument: {}
fine_position Precise continuous coordinate triplet (x, y, z) as floating-point numbers.
type: "fine_position"
argument:
  center-integers: true # Optional (default: false)
column_fine_position Precise continuous 2D column coordinate pair (x, z) as floating-point numbers.
type: "column_fine_position"
argument:
  center-integers: true # Optional (default: false)
rotation Two-value rotation representing yaw and pitch angles.
type: "rotation"
# argument: {}
angle A relative or absolute angle value.
type: "angle"
# argument: {}
axes Coordinate axes selection (e.g., x, xy, xyz).
type: "axes"
# argument: {}
block_state A block state specification, including block type and properties.
type: "block_state"
# argument: {}
item_stack An item type along with optional NBT/components data.
type: "item_stack"
# argument: {}
item_predicate A predicate used to test and match item stacks.
type: "item_predicate"
# argument: {}
named_color A standard Minecraft named formatting color (e.g., red, blue).
type: "named_color"
# argument: {}
hex_color A custom RGB color in hexadecimal notation (e.g., #FF5555).
type: "hex_color"
# argument: {}
component A text component formatted as JSON.
type: "component"
# argument: {}
style Formatting styles for text components as JSON.
type: "style"
# argument: {}
signed_message A cryptographically signed chat message string.
type: "signed_message"
# argument: {}
scoreboard_display_slot A valid scoreboard display slot (e.g., sidebar, belowName).
type: "scoreboard_display_slot"
# argument: {}
namespaced_key A standard key identifier in namespace:value format.
type: "namespaced_key"
# argument: {}
key A resource key identifier.
type: "key"
# argument: {}
integer_range An integer range value (e.g., 1..5, 10..).
type: "integer_range"
# argument: {}
double_range A floating-point double range value (e.g., 1.5..5.5).
type: "double_range"
# argument: {}
world A loaded world/dimension instance.
type: "world"
# argument: {}
game_mode A valid Minecraft gamemode (e.g., survival, creative).
type: "game_mode"
# argument: {}
height_map A world heightmap type (e.g., world_surface, ocean_floor).
type: "height_map"
# argument: {}
uuid A valid Universally Unique Identifier string.
type: "uuid"
# argument: {}
objective_criteria A valid scoreboard objective criteria name.
type: "objective_criteria"
# argument: {}
entity_anchor An entity anchor point (e.g., feet or eyes).
type: "entity_anchor"
# argument: {}
time A duration value in ticks, seconds, or days with an optional minimum limit.
type: "time"
argument:
  min-time: 0 # Optional (default: 0)
template_mirror A structure block mirror setting (e.g., none, left_right, front_back).
type: "template_mirror"
# argument: {}
template_rotation A structure block rotation setting (e.g., none, clockwise_90).
type: "template_rotation"
# argument: {}

Clone this wiki locally