Skip to content

Power

Entity Condition Type

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

Type ID: origins:power

Caution

Since only Living Entities can have powers, using this entity condition on a non-living entity might crash the game. Always make sure to check if the entity is a Living Entity by using the Living (Entity Condition Type) to prevent your game from crashing.

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 The namespace and ID of the source of the power.

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.