Wizards of Lua

The Art of Spell Crafting


EntityJoinWorldEvent - When an Entity Enters the World

The EntityJoinWorldEvent is fired when an entity joins the world. This happens e.g. when an entity is spawned and when a chunk with existing entities is loaded into the server’s memory.

The EntityJoinWorldEvent class is a subtype of the EntityEvent class and inherits all its properties and functions.

Here is an overview of the EntityJoinWorldEvent properties:

Property Type read / write
world World r

Properties

Below you find short descriptions about each of the properties and some examples about how to use them in your spells.


world : World

This is the world in which this entity is going to join.