Skip to content

Entity

Encodes the entity as NBT and uses it as the provided value.

Type ID: kaya:entity

Info

See Minecraft Wiki: Entity format for the format when the entity is encoded as NBT.

Format

Field Type Default Description
entity Entity Provider The entity to encode as NBT.

Example

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

This example encodes the entity provided by the kaya:this_entity context parameter and provides it as the NBT value.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.