Skip to content

Entity

Provides a command source from an entity, where the position, name, and rotation of the command source is the position, name, and rotation of the entity.

Type ID: kaya:entity

Format

Field Type Default Description
entity Entity Provider The entity to create the command source from.

Example

{
    "type": "kaya:entity",
    "entity": "actor"
}

This example provides a command source where its position, name, and rotation used in the command source is the position, name, and rotation of the entity provided by the kaya:actor_entity context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.