Class WorldAfterEventsBeta

Contains a set of events that are available across the scope of the World.

Hierarchy

  • WorldAfterEvents

Constructors

Properties

Remarks

This event fires when a button is pushed.

Remarks

This event fires when an entity dies.

Remarks

This event fires when entity health changes in any degree.

Remarks

This event fires when an entity hits (that is, melee attacks) a block.

Remarks

This event fires when an entity hits (that is, melee attacks) another entity.

Remarks

This event fires when an entity is hurt (takes damage).

Remarks

This event fires when a chargeable item completes charging.

Remarks

This event fires when a chargeable item is released from charging.

Remarks

This event fires when a chargeable item starts charging.

Remarks

This event fires when a player successfully uses an item or places a block by pressing the Use Item / Place Block button. If multiple blocks are placed, this event will only occur once at the beginning of the block placement. Note: This event cannot be used with Hoe or Axe items.

Remarks

This event fires when a chargeable item stops charging.

Remarks

This event fires when a player releases the Use Item / Place Block button after successfully using an item. Note: This event cannot be used with Hoe or Axe items.

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

A lever has been pulled.

Remarks

This event fires when a player joins a world. See also playerSpawn for another related event you can trap for when a player is spawned the first time within a world.

Remarks

This event fires when a player leaves a world.

Remarks

This event fires when a player spawns or respawns. Note that an additional flag within this event will tell you whether the player is spawning right after join vs. a respawn.

Remarks

A pressure plate has popped back up (i.e., there are no entities on the pressure plate.)

Remarks

A pressure plate has pushed (at least one entity has moved onto a pressure plate.)

Remarks

A target block was hit.

Remarks

A trip wire was tripped.