Skip to main content

🔗 Chain Arguments

Introduction​

Chain Arguments represent a dot-notation syntax (connected by .) used to access object-related parameters in a hierarchical manner.

For example, in an interaction event where we can access the player instance, we can retrieve additional parameters through this object.

By chaining property accessors like:

  • player.world → Gets the player's current world
  • world.name → Gets the name of that world

We can combine them into a parameter tag format like <arg:player.world.name>. This tag will dynamically return the name of the world the player is currently in.

Objects​

player​

parametertypedescription
xdoublethe x coordinate of the player
ydoublethe y coordinate of the player
zdoublethe z coordinate of the player
block_xintthe x coordinate of the player
block_yintthe y coordinate of the player
block_zintthe z coordinate of the player
namestringthe name of the player
uuiduuidthe uuid of the player
is_flyingbooleancheck the fly state
is_sneakingbooleancheck the sneak state
gamemodestringthe gamemode of the player
main_hand_item#itemthe item in main hand
off_hand_item#itemthe item in off hand
world#worldthe world where the player is in
position#positionthe position of the player

block​

parametertypedescription
xdoublethe x coordinate of the block
ydoublethe y coordinate of the block
zdoublethe z coordinate of the block
block_xintthe x coordinate of the block
block_yintthe y coordinate of the block
block_zintthe z coordinate of the block
world#worldthe world where the block is in
block_stateblock_statethe blockstate of the block
position#positionthe position of the block

world​

parametertypedescription
namestringthe name of the world
uuiduuidthe uuid of the world
timelongthe time of the world

position​

parametertypedescription
xdoublethe x coordinate
ydoublethe y coordinate
zdoublethe z coordinate
block_xintthe x coordinate
block_yintthe y coordinate
block_zintthe z coordinate
world#worldthe world

item​

parametertypedescription
idstringthe id of the item
custom_model_dataintthe custom model data of the item
is_custombooleanchecks if the item is custom

furniture​

parametertypedescription
idstringthe id of the furniture
uuiduuidthe uuid of the furniture
anchor_typestringthe anchor type of the furniture
xdoublethe x coordinate of the furniture
ydoublethe y coordinate of the furniture
zdoublethe z coordinate of the furniture
yawfloatthe yaw of the furniture
pitchfloatthe pitch of the furniture
position#positionthe position of the furniture