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
pitchdoublethe pitch of the player
yawdoublethe yaw of the player
position#positionthe position of the player
block_xintthe x coordinate of the player
block_yintthe y coordinate of the player
block_zintthe z coordinate of the player
foodintthe food level of the player
saturationfloatthe saturation of the player
namestringthe name of the player
uuiduuidthe uuid of the player
world#worldthe world where the player is in
is_sneakingbooleancheck the sneak state
is_swimmingbooleancheck the swimming state
is_climbingbooleancheck the climbing state
is_glidingbooleancheck the gliding state
is_flyingbooleancheck the fly state
gamemodestringthe gamemode of the player
game_editionstringthe game edition of the player
main_hand_item#itemthe item in main hand
off_hand_item#itemthe item in off hand

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
position#positionthe position of the block

world​

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

entity​

parametertypedescription
xdoublethe x coordinate of the entity
ydoublethe y coordinate of the entity
zdoublethe z coordinate of the entity
pitchdoublethe pitch of the entity
yawdoublethe yaw of the entity
block_xintthe x coordinate of the entity
block_yintthe y coordinate of the entity
block_zintthe z coordinate of the entity
namestringthe name of the entity
uuiduuidthe uuid of the entity
world#worldthe world where the entity is in
position#positionthe position of the entity
item#itemthe item of dropped item entity

position​

parametertypedescription
world#worldthe world
xdoublethe x coordinate
ydoublethe y coordinate
zdoublethe z coordinate
yawfloatthe yaw
pitchfloatthe pitch
block_xintthe x coordinate
block_yintthe y coordinate
block_zintthe z coordinate

item​

parametertypedescription
idstringthe id of the item
custom_model_dataintthe custom model data of the item
is_custombooleanchecks if the item is custom
countintthe count of the item
is_block_itembooleanchecks if the item is vanilla block item

furniture​

parametertypedescription
idstringthe id of the furniture
uuiduuidthe uuid of the furniture
variantstringthe variant 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