For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EntityHealthChangedAfterEvent.md.

Class: EntityHealthChangedAfterEvent

event entity damage

Beta

Contains information related to an entity when its health changes. Warning: don't change the health of an entity in this event, or it will cause an infinite loop!

Properties

entity

readonly entity: Entity

Beta

Remarks

Entity whose health changed.


newValue

readonly newValue: number

Beta

Remarks

New health value of the entity.


oldValue

readonly oldValue: number

Beta

Remarks

Old health value of the entity.

同领域相关