Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / DamageSourceSpec

Interface: DamageSourceSpec โ€‹

Defined in: core/values/predicate/types/damage.ts:6

A damage source check, for damage_source_properties and damage triggers.

Properties โ€‹

directEntity? โ€‹

optional directEntity?: EntityPredicateSpec

Defined in: core/values/predicate/types/damage.ts:12

The entity that hit, e.g. the arrow.


isDirect? โ€‹

optional isDirect?: boolean

Defined in: core/values/predicate/types/damage.ts:14

Source and direct entity are the same. 1.21+.


sourceEntity? โ€‹

optional sourceEntity?: EntityPredicateSpec

Defined in: core/values/predicate/types/damage.ts:10

The entity responsible, e.g. the skeleton.


tags? โ€‹

optional tags?: object[]

Defined in: core/values/predicate/types/damage.ts:8

Damage type tags the damage must (expected: true) or must not be in. 1.19.4+.

expected โ€‹

expected: boolean

id โ€‹

id: string | IdValue

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.