Skip to content

@minecraft/server


@minecraft/server / EntityDieAfterEvent

Class: EntityDieAfterEvent ​

Defined in: @minecraft/server/index.d.ts:10116

Contains data related to the death of an entity in the game.

Properties ​

damageSource ​

readonly damageSource: EntityDamageSource

Defined in: @minecraft/server/index.d.ts:10124

Remarks ​

If specified, provides more information on the source of damage that caused the death of this entity.


deadEntity ​

readonly deadEntity: Entity

Defined in: @minecraft/server/index.d.ts:10130

Remarks ​

Now-dead entity object.