Entity details

Some functions in CC: Tweaked (such as commands.getEntities) provide a way to get information about an entity. This page details information about entities that CC: Tweaked may return.

Basic information

Entity information will always contain:

Example

A creeper:

{
    name = "minecraft:creeper",
    count = 32,
}

Display information

The display name of the entity.

Example

A creeper:

{
    name = "minecraft:creeper",
    displayName = "Creeper",
}

Health

The health of an entity.

Example

A player at max health.

{
    name = "minecraft:player",
    displayName = "Alex",
    health = 20,
    maxHealth = 20,
}

Entity tags

The tags an entity of this type has.

Changes