Prevent Elytra Flight (Power Type)

Prevents the entity that has the power from flying with either an Elytra item or a power that uses the apoli:elytraflight.

Prevents the entity that has the power from flying with either an Elytra item or a power that uses the apoli:elytra_flight.

Type ID: apoli:prevent_elytra_flight

Fields

FieldTypeDefaultDescription
entity_actionEntity Action TypeoptionalIf specified, this action will be executed upon the entity trying to fly an Elytra/power that uses the apoli:elytra_flight.

Examples

{
    "type": "apoli:prevent_elytra_flight",
    "entity_action": {
        "type": "apoli:execute_command",
        "command": "tellraw @s {\"text\": \"You cannot glide from this height!\", \"color\": \"red\"}"
    },
    "condition": {
        "type": "apoli:in_block",
        "block_condition": {
            "type": "apoli:height",
            "comparison": "<=",
            "compare_to": 64
        }
    }
}

This example will display a warning and prevent the entity that has the power from flying with an Elytra if they’re at Y=64 or lower.