Skip to main content

Elytra Fly

The arc:on_elytra_fly action type is triggered when a player is flying with an elytra.

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 Jump Boost I effect for 10 seconds as long as they are flying with an elytra.

data/my_datapack/arc/jump_boost_on_elytra_fly.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_elytra_fly",
"rewards": [
{
"type": "arc:effect",
"effect": "minecraft:jump_boost",
"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: