Appearance
helix / EntityPredicateSpec
Interface: EntityPredicateSpec
Defined in: core/values/predicate.ts:66
The typed shape of an EntityPredicate - the body of an entity_properties check. Every field is optional and only emitted when set. nbt is the "over NBT" hook: write the NBT condition once as a typed Nbt value and it renders version-aware into the predicate's nbt string.
Properties
equipment?
optionalequipment?:EquipmentSpec
Defined in: core/values/predicate.ts:76
Item match per equipment slot - each built from the same ItemValue you'd give.
flags?
optionalflags?:EntityFlags
Defined in: core/values/predicate.ts:74
Boolean state flags.
location?
optionallocation?:LocationSpec
Defined in: core/values/predicate.ts:78
Where the entity is.
nbt?
optionalnbt?:NbtValue
Defined in: core/values/predicate.ts:70
Raw NBT match (SNBT). Use a typed Nbt so embedded values render version-aware.
passenger?
optionalpassenger?:EntityPredicateSpec
Defined in: core/values/predicate.ts:82
What is riding the entity (a nested entity predicate).
team?
optionalteam?:string
Defined in: core/values/predicate.ts:72
Team name.
type?
optionaltype?:string|IdValue
Defined in: core/values/predicate.ts:68
Entity type id or tag, e.g. "minecraft:zombie" / "#minecraft:skeletons".
vehicle?
optionalvehicle?:EntityPredicateSpec
Defined in: core/values/predicate.ts:80
What the entity is riding (a nested entity predicate).