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â
parameter | type | description |
---|
x | double | the x coordinate of the player |
y | double | the y coordinate of the player |
z | double | the z coordinate of the player |
block_x | int | the x coordinate of the player |
block_y | int | the y coordinate of the player |
block_z | int | the z coordinate of the player |
name | string | the name of the player |
uuid | uuid | the uuid of the player |
is_flying | boolean | check the fly state |
is_sneaking | boolean | check the sneak state |
gamemode | string | the gamemode of the player |
main_hand_item | #item | the item in main hand |
off_hand_item | #item | the item in off hand |
world | #world | the world where the player is in |
position | #position | the position of the player |
parameter | type | description |
---|
x | double | the x coordinate of the block |
y | double | the y coordinate of the block |
z | double | the z coordinate of the block |
block_x | int | the x coordinate of the block |
block_y | int | the y coordinate of the block |
block_z | int | the z coordinate of the block |
world | #world | the world where the block is in |
block_state | block_state | the blockstate of the block |
position | #position | the position of the block |
parameter | type | description |
---|
name | string | the name of the world |
uuid | uuid | the uuid of the world |
time | long | the time of the world |
positionâ
parameter | type | description |
---|
x | double | the x coordinate |
y | double | the y coordinate |
z | double | the z coordinate |
block_x | int | the x coordinate |
block_y | int | the y coordinate |
block_z | int | the z coordinate |
world | #world | the world |
parameter | type | description |
---|
id | string | the id of the item |
custom_model_data | int | the custom model data of the item |
is_custom | boolean | checks if the item is custom |
furnitureâ
parameter | type | description |
---|
id | string | the id of the furniture |
uuid | uuid | the uuid of the furniture |
anchor_type | string | the anchor type of the furniture |
x | double | the x coordinate of the furniture |
y | double | the y coordinate of the furniture |
z | double | the z coordinate of the furniture |
yaw | float | the yaw of the furniture |
pitch | float | the pitch of the furniture |
position | #position | the position of the furniture |