Class EntityCountCondition

java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.effect.TriggerCondition
com.hypixel.hytale.builtin.triggervolumes.effect.builtin.conditions.EntityCountCondition

public class EntityCountCondition extends TriggerCondition
Passes when the number of living NPCs currently inside the relevant volume(s) satisfies the configured comparison. Corpses are excluded so that EXACTLY 0 becomes true the moment the last NPC dies, not when its corpse despawns.

The count comes from a direct query of the entity spatial index against each volume's shape, so it works regardless of the volume's configured target types (which only drive ENTER/TICK tracking).

When EntityType lists one or more role names, only NPCs whose role matches any of them are counted; otherwise every living NPC is counted.