Skip to main content

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

Riding Entity Type

The arc:riding_entity_type condition type checks the type of entity the player is currently riding.

Parameters

ParameterTypeRequiredDefaultDescription
entity_typeEntityTypeRequired-The entity type being ridden.

Example

The following example gives speed when riding a pig.

data/my_datapack/arc/fast_pig.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_horse_ride",
"conditions": [
{
"type": "arc:riding_entity_type",
"entity_type": "minecraft:pig"
}
],
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:speed",
"duration": 20
}
}
]
}

Compatible Action Types