Ability (Entity Condition Type)

Checks if the player has the specified ability enabled.

Checks if the player has the specified ability enabled.

Type ID: apoli:ability

Fields

FieldTypeDefaultDescription
abilityPlayer AbilityThe namespace and ID of the ability to check for.

Examples

"condition": {
    "type": "apoli:ability",
    "ability": "minecraft:mayfly"
}

This example will check if the player can fly in a Creative Mode-like fashion.