Skip to main content

Horse Ride

The arc:on_horse_ride action type is triggered when a player is riding a horse.

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 Regeneration I effect for 10 seconds as long as they are riding a horse.

data/my_datapack/arc/regeneration_on_horse_ride.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_horse_ride",
"rewards": [
{
"type": "arc:effect",
"effect": "minecraft:regeneration",
"duration": 200,
"amplifier": 0
}
]
}

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: