Beta Private constructorReadonly Beta chatThis event is triggered after a chat message has been broadcast or sent to players.
Readonly Beta dataThis event is fired when an entity event has been triggered that will update the component definition state of an entity.
Readonly Beta entityFires before an entity is removed from the world (for example, unloaded or removed after being killed.)
Readonly Beta explosionThis event is fired after an explosion occurs.
Readonly Beta itemFor custom items, this event is triggered when the fundamental set of defined components for the item change. Note that this event is only fired for custom data-driven items.
Readonly itemThis event fires when an item is successfully used by a player.
Readonly itemThis event fires when an item is used on a block by a player.
Readonly Beta pistonThis event fires when a piston expands or retracts.
Readonly Beta playerThis event fires before a block is broken by a player.
Readonly Beta playerReadonly Beta playerReadonly Beta playerReadonly Beta playerThis event fires before a block is placed by a player.
A set of events that fire before an actual action occurs. In most cases, you can potentially cancel or modify the impending event. Note that in before events any APIs that modify gameplay state will not function and will throw an error. (e.g., dimension.spawnEntity)