Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Is Riding

The arc:is_riding condition type checks if the player is currently riding an entity (horse, boat, minecart, etc.).

Parameters

This condition type does not have any parameters.

Example

The following example gives speed when shooting a projectile while riding.

data/my_datapack/arc/mounted_archery.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_shoot_projectile",
"conditions": [
{
"type": "arc:is_riding"
}
],
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:speed",
"duration": 100
}
}
]
}

Compatible Action Types