Skip to content

Is Entity Owned by Other

Checks if an entity is owned by another entity.

Type ID: kaya:is_entity_owned_by_other

Format

Field Type Default Description
first Entity Provider The ownable entity to check if it's owned by an entity.
second Entity Provider The supposed owner of the ownable entity.

Example

{
    "type": "kaya:is_entity_owned_by_other",
    "first": "target",
    "second": "actor"
}

This example will check if the entity provided by the kaya:target_entity context parameter is owned by the entity provided by the kaya:actor_entity context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.