Skip to main content

Walk

The arc:on_walk action type is triggered when a player is walking.

Action Data

When this action is triggered, the following action data is made available to be used by conditions and rewards:

Action Data TypeDescription
arc:distance_in_cmMeasures a distance in centimeters, often used for proximity-based actions.

Example

The following example will give the player a Speed I effect for 10 seconds as long as they are walking.

data/my_datapack/arc/speed_on_walk.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_walk",
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:speed",
"duration": 200,
"amplifier": 0,
"show_particles": false,
"show_icon": false
}
}
]
}

Compatible Condition Types

The following condition types can be used with this action type:

Compatible Reward Types

The following reward types can be used with this action type: