Skip to main content

NBT (Entity Condition Type)

Checks whether the entity's NBT contains the given data.

Type ID: apoli:nbt

Fields

FieldTypeDefaultDescription
nbtNBTrequiredThe NBT data to look for.

Examples

"condition": {
    "type": "apoli:nbt",
    "nbt": "{Tags: ['example_tag']}"
}

This checks whether the entity has the example_tag tag, added with /tag or by editing the entity's Tags NBT list.