Appearance
helix / EntityPredicateSpec
Interface: EntityPredicateSpec โ
Defined in: core/values/predicate/types/entity.ts:67
The body of an entity_properties check. Fields are only emitted when set.
Properties โ
components? โ
optionalcomponents?:Record<string,unknown>
Defined in: core/values/predicate/types/entity.ts:107
Exact data component values, keyed by component id. 1.21.5+.
Raw JSON: helix has no typed entity components yet.
distance? โ
optionaldistance?:DistanceSpec
Defined in: core/values/predicate/types/entity.ts:93
Distance from the origin of the check.
effects? โ
optionaleffects?:EffectSpec[]
Defined in: core/values/predicate/types/entity.ts:95
Active effects; all must match.
entityTags? โ
optionalentityTags?:object
Defined in: core/values/predicate/types/entity.ts:101
Scoreboard tags. 26.2+; before that use Selector.tag.
allOf? โ
optionalallOf?:string[]
anyOf? โ
optionalanyOf?:string[]
noneOf? โ
optionalnoneOf?:string[]
equipment? โ
optionalequipment?:EquipmentSpec
Defined in: core/values/predicate/types/entity.ts:77
Item match per equipment slot - each built from the same ItemValue you'd give.
flags? โ
optionalflags?:EntityFlags
Defined in: core/values/predicate/types/entity.ts:75
Boolean state flags.
location? โ
optionallocation?:LocationSpec
Defined in: core/values/predicate/types/entity.ts:87
Where the entity is.
movement? โ
optionalmovement?:MovementSpec
Defined in: core/values/predicate/types/entity.ts:97
Movement last tick. Speeds are in blocks per second. 1.21+.
movementAffectedBy? โ
optionalmovementAffectedBy?:LocationSpec
Defined in: core/values/predicate/types/entity.ts:91
The block up to 0.5 below the entity that affects its movement. 1.21+.
nbt? โ
optionalnbt?:NbtValue
Defined in: core/values/predicate/types/entity.ts:71
NBT match. Use Nbt so embedded values render for the version.
passenger? โ
optionalpassenger?:EntityPredicateSpec
Defined in: core/values/predicate/types/entity.ts:115
What is riding the entity (a nested entity predicate).
periodicTick? โ
optionalperiodicTick?:number
Defined in: core/values/predicate/types/entity.ts:99
True every n ticks of the entity's life. 1.21+.
predicates? โ
optionalpredicates?:Record<string,unknown>
Defined in: core/values/predicate/types/entity.ts:109
Data component sub-predicates, keyed by type. 1.21.5+. Raw JSON, as components.
slots? โ
Defined in: core/values/predicate/types/entity.ts:85
Item match per slot range, replacing nbt={Inventory:[...]} scans (which broke with components).
Passes if any slot in the range matches. Use SLOTS: an unknown slot name makes the engine reject the whole file.
steppingOn? โ
optionalsteppingOn?:LocationSpec
Defined in: core/values/predicate/types/entity.ts:89
The block the entity stands on. 1.17+.
targetedEntity? โ
optionaltargetedEntity?:EntityPredicateSpec
Defined in: core/values/predicate/types/entity.ts:117
What the mob is targeting.
team? โ
optionalteam?:string
Defined in: core/values/predicate/types/entity.ts:73
Team name.
type? โ
optionaltype?:IdList<EntityType>
Defined in: core/values/predicate/types/entity.ts:69
Entity type id, tag, or a list (1.20.5+), e.g. EntityType.ZOMBIE.
typeSpecific? โ
optionaltypeSpecific?:TypeSpecificSpec
Defined in: core/values/predicate/types/entity.ts:111
A check for one kind of entity (player, raider, slime, ...). 1.19+.
vehicle? โ
optionalvehicle?:EntityPredicateSpec
Defined in: core/values/predicate/types/entity.ts:113
What the entity is riding (a nested entity predicate).