Power

Entity Condition Type

Checks whether the entity has a specified power. Mostly used for Origin conditions in layers

Type ID: origins:power

Caution

Make sure to use the Living (Entity Condition Type) to check if the entity is a "living entity", otherwise, the game will crash since only living entities can have powers.

Fields

Field Type Default Description
power Identifier The namespace and ID of the power the entity needs to have to pass the check.
source Identifier optional If specified, the condition will check if the power is from the specified power source.

Examples

"condition": {
    "type": "origins:power",
    "power": "origins:damage_from_potions"
}

This example will check if the player has the origins:damage_from_potions power in its origin.