Skip to content

Entity Has Active Power

Checks if a specified power from an entity is considered active.

Type ID: kaya:entity_has_active_power

Format

Field Type Default Description
power Power Identifier The power to check.
entity Entity Provider The entity to get the power from.

Example

{
    "type": "kaya:entity_has_active_power",
    "power": "example:powder_snow_runner",
    "entity": "this" 
}

This example will check if the example:powder_snow_runner power from the entity provided by the kaya:this_entity context parameter is considered active.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.