Class: WorldAfterEvents
Contains a set of events that are available across the scope of the World.
Constructors
new WorldAfterEvents()
private
new WorldAfterEvents():WorldAfterEvents
Returns
Properties
blockExplode
Beta
readonly
blockExplode:BlockExplodeAfterEventSignal
Remarks
This event fires for each BlockLocation destroyed by an explosion. It is fired after the blocks have already been destroyed.
buttonPush
readonly
buttonPush:ButtonPushAfterEventSignal
Remarks
This event fires when a button is pushed.
chatSend
Beta
readonly
chatSend:ChatSendAfterEventSignal
Remarks
This event is triggered after a chat message has been broadcast or sent to players.
dataDrivenEntityTrigger
readonly
dataDrivenEntityTrigger:DataDrivenEntityTriggerAfterEventSignal
Remarks
This event is fired when an entity event has been triggered that will update the component definition state of an entity.
effectAdd
readonly
effectAdd:EffectAddAfterEventSignal
Remarks
This event fires when an effect, like poisoning, is added to an entity.
entityDie
readonly
entityDie:EntityDieAfterEventSignal
Remarks
This event fires when an entity dies.
entityHealthChanged
readonly
entityHealthChanged:EntityHealthChangedAfterEventSignal
Remarks
This event fires when entity health changes in any degree.
entityHitBlock
readonly
entityHitBlock:EntityHitBlockAfterEventSignal
Remarks
This event fires when an entity hits (that is, melee attacks) a block.
entityHitEntity
readonly
entityHitEntity:EntityHitEntityAfterEventSignal
Remarks
This event fires when an entity hits (that is, melee attacks) another entity.
entityHurt
readonly
entityHurt:EntityHurtAfterEventSignal
Remarks
This event fires when an entity is hurt (takes damage).
entityLoad
readonly
entityLoad:EntityLoadAfterEventSignal
Remarks
Fires when an entity is loaded.
entityRemove
readonly
entityRemove:EntityRemoveAfterEventSignal
Remarks
Fires when an entity is removed (for example, potentially unloaded, or removed after being killed).
entitySpawn
readonly
entitySpawn:EntitySpawnAfterEventSignal
Remarks
This event fires when an entity is spawned.
explosion
readonly
explosion:ExplosionAfterEventSignal
Remarks
This event is fired after an explosion occurs.
gameRuleChange
Beta
readonly
gameRuleChange:GameRuleChangeAfterEventSignal
Remarks
This event fires when a world.gameRules property has changed.
itemCompleteUse
readonly
itemCompleteUse:ItemCompleteUseAfterEventSignal
Remarks
This event fires when a chargeable item completes charging.
itemReleaseUse
readonly
itemReleaseUse:ItemReleaseUseAfterEventSignal
Remarks
This event fires when a chargeable item is released from charging.
itemStartUse
readonly
itemStartUse:ItemStartUseAfterEventSignal
Remarks
This event fires when a chargeable item starts charging.
itemStartUseOn
readonly
itemStartUseOn:ItemStartUseOnAfterEventSignal
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.
itemStopUse
readonly
itemStopUse:ItemStopUseAfterEventSignal
Remarks
This event fires when a chargeable item stops charging.
itemStopUseOn
readonly
itemStopUseOn:ItemStopUseOnAfterEventSignal
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.
itemUse
readonly
itemUse:ItemUseAfterEventSignal
Remarks
This event fires when an item is successfully used by a player.
itemUseOn
readonly
itemUseOn:ItemUseOnAfterEventSignal
Remarks
This event fires when an item is used on a block by a player.
leverAction
readonly
leverAction:LeverActionAfterEventSignal
Remarks
A lever has been pulled.
messageReceive
Beta
readonly
messageReceive:ServerMessageAfterEventSignal
Remarks
This event is an internal implementation detail, and is otherwise not currently functional.
pistonActivate
readonly
pistonActivate:PistonActivateAfterEventSignal
Remarks
This event fires when a piston expands or retracts.
playerBreakBlock
readonly
playerBreakBlock:PlayerBreakBlockAfterEventSignal
Remarks
This event fires for a block that is broken by a player.
playerDimensionChange
readonly
playerDimensionChange:PlayerDimensionChangeAfterEventSignal
Remarks
Fires when a player moved to a different dimension.
playerGameModeChange
Beta
readonly
playerGameModeChange:PlayerGameModeChangeAfterEventSignal
playerInteractWithBlock
Beta
readonly
playerInteractWithBlock:PlayerInteractWithBlockAfterEventSignal
Remarks
An event for when a player interacts with a block.
playerInteractWithEntity
Beta
readonly
playerInteractWithEntity:PlayerInteractWithEntityAfterEventSignal
Remarks
This event fires when a player interacts with an entity.
playerJoin
readonly
playerJoin:PlayerJoinAfterEventSignal
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.
playerLeave
readonly
playerLeave:PlayerLeaveAfterEventSignal
Remarks
This event fires when a player leaves a world.
playerPlaceBlock
readonly
playerPlaceBlock:PlayerPlaceBlockAfterEventSignal
Remarks
This event fires for a block that is placed by a player.
playerSpawn
readonly
playerSpawn:PlayerSpawnAfterEventSignal
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.
pressurePlatePop
readonly
pressurePlatePop:PressurePlatePopAfterEventSignal
Remarks
A pressure plate has popped back up (i.e., there are no entities on the pressure plate.)
pressurePlatePush
readonly
pressurePlatePush:PressurePlatePushAfterEventSignal
Remarks
A pressure plate has pushed (at least one entity has moved onto a pressure plate.)
projectileHitBlock
readonly
projectileHitBlock:ProjectileHitBlockAfterEventSignal
Remarks
This event fires when a projectile hits a block.
projectileHitEntity
readonly
projectileHitEntity:ProjectileHitEntityAfterEventSignal
Remarks
This event fires when a projectile hits an entity.
targetBlockHit
readonly
targetBlockHit:TargetBlockHitAfterEventSignal
Remarks
A target block was hit.
tripWireTrip
readonly
tripWireTrip:TripWireTripAfterEventSignal
Remarks
A trip wire was tripped.
weatherChange
readonly
weatherChange:WeatherChangeAfterEventSignal
Remarks
This event will be triggered when the weather changes within Minecraft.
worldInitialize
readonly
worldInitialize:WorldInitializeAfterEventSignal
Remarks
This event fires when the script environment is initialized on a World.