Skip to content

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?

optional equipment?: EquipmentSpec

Defined in: core/values/predicate.ts:76

Item match per equipment slot - each built from the same ItemValue you'd give.


flags?

optional flags?: EntityFlags

Defined in: core/values/predicate.ts:74

Boolean state flags.


location?

optional location?: LocationSpec

Defined in: core/values/predicate.ts:78

Where the entity is.


nbt?

optional nbt?: NbtValue

Defined in: core/values/predicate.ts:70

Raw NBT match (SNBT). Use a typed Nbt so embedded values render version-aware.


passenger?

optional passenger?: EntityPredicateSpec

Defined in: core/values/predicate.ts:82

What is riding the entity (a nested entity predicate).


team?

optional team?: string

Defined in: core/values/predicate.ts:72

Team name.


type?

optional type?: string | IdValue

Defined in: core/values/predicate.ts:68

Entity type id or tag, e.g. "minecraft:zombie" / "#minecraft:skeletons".


vehicle?

optional vehicle?: EntityPredicateSpec

Defined in: core/values/predicate.ts:80

What the entity is riding (a nested entity predicate).

Released under the MIT License · Credits