Skip to content

Entity Attribute

Provides the value of an attribute from an entity.

Type ID: kaya:entity/attribute

Format

Field Type Default Description
attribute Identifier The ID of the attribute.
entity Entity Provider The entity to get the attribute from.

Example

{
    "type": "kaya:entity/attribute",
    "attribute": "minecraft:max_health",
    "entity": "actor"
}

This example will provide the value of the minecraft:max_health attribute from the entity provided by the kaya:actor_entity context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.