Skip to content

@minecraft/server


@minecraft/server / EntityRemoveAfterEvent

Class: EntityRemoveAfterEvent ​

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

Data for an event that happens when an entity is removed from the world (for example, the entity is unloaded because it is not close to players.)

Properties ​

removedEntityId ​

readonly removedEntityId: string

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

Remarks ​

Id of the entity that was removed.


typeId ​

readonly typeId: string

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

Remarks ​

Identifier of the type of the entity removed - for example, 'minecraft:skeleton'.