Skip to main content

Entity Type (Entity Condition Type)

Checks whether the entity is of a given entity type.

Type ID: apoli:entity_type

Fields

FieldTypeDefaultDescription
entity_typeIdentifierrequiredThe entity type the entity must have. Start it with # to match an entity type tag instead, as in "#minecraft:skeletons".

Examples

"condition": {
    "type": "apoli:entity_type",
    "entity_type": "minecraft:creeper"
}

This checks whether the entity is a creeper.

"condition": {
    "type": "apoli:entity_type",
    "entity_type": "#minecraft:skeletons"
}

This passes for any entity in the minecraft:skeletons tag.