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.)
export class EntityRemoveAfterEvent { private constructor(); readonly removedEntityId: string; readonly typeId: string;} Copy
export class EntityRemoveAfterEvent { private constructor(); readonly removedEntityId: string; readonly typeId: string;}
Private
Readonly
Id of the entity that was removed.
This property can't be read in early-execution mode.
Identifier of the type of the entity removed - for example, 'minecraft:skeleton'.
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.)
Source