Skip to content

Entity Has Power

Checks if an entity has a specified power, and optionally, if it's from a specific source.

Type ID: kaya:entity_has_power

Format

Field Type Default Description
power Power Identifier The ID of the power to check for.
source Identifier optional If specified, checks if the power was granted with this ID as its source.
entity Entity Provider The entity to get the power from.

Example

{
    "type": "kaya:entity_has_power",
    "power": "thing:really_cool",
    "entity": "this"
}

This example will check if the entity provided by the kaya:this_entity context parameter has the thing:really_cool power.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.