@minecraft/server
    Preparing search index...

    Class EntityHealthChangedAfterEventBeta

    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!

    Index

    Properties

    entity: Entity

    Entity whose health changed.

    newValue: number

    New health value of the entity.

    oldValue: number

    Old health value of the entity.