Skip to main content

Ability (Entity Condition Type)

Checks whether the player has a player ability turned on.

Type ID: apoli:ability

Fields

FieldTypeDefaultDescription
abilityPlayer AbilityrequiredThe ID of the ability to check for.

Examples

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

This checks whether the player can fly the way Creative mode allows.