Skip to content

Entity UUID

Provides the string form of an entity's UUID.

Type ID: kaya:entity/uuid

Format

Field Type Default Description
entity Entity Provider The entity to get the UUID of.

Example

{
    "type": "kaya:entity/uuid",
    "entity": {
        "type": "kaya:selector",
        "selector": "@e[sort = random, limit = 1]"
    }
}

This example provides the string form of the UUID of a random entity.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.