Class WorldBeforeEvents

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)

Hierarchy

  • WorldBeforeEvents

Constructors

Properties

Remarks

This event is triggered after a chat message has been broadcast or sent to players.

dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerBeforeEventSignal

Remarks

This event is fired when an entity event has been triggered that will update the component definition state of an entity.

Remarks

This event is triggered after an event has been added to an entity.

Remarks

Fires before an entity is removed from the world (for example, unloaded or removed after being killed.)

Remarks

This event is fired after an explosion occurs.

Remarks

This event fires when an item is successfully used by a player.

Remarks

This event fires when an item is used on a block by a player.

Remarks

This event fires before a block is broken by a player.

Remarks

Fires before a player interacts with a block.

Remarks

Fires before a player interacts with an entity.

Remarks

Fires when a player leaves the game.

Remarks

This event fires before a block is placed by a player.