Entity
Entity entity
Fields
Field
Type
Description
bool
If true, the chunk containing this entity will remain loaded even if no players are present.
bool
If true, when the chunk containing this entity is unloaded, the entity will be removed.
Methods
Method
Parameters
Returns
Description
None
x: float
y: float
z: float
Get the current position of the entity. Returns individual coordinates x, y, z.
dist: float
Entity[]
Get entities within the specified distance. Within a 3x3 grid of chunks around the entity.
dimension: string
x: float
y: float
z: float
None
Transport this entity to coordinates (x,y,z) in the dimension specified.
The x, y, and z fields are optional and default to 0.
Necessary Methods
Method
Parameters
Return Value
Description
Method
Parameters
Return Value
Description
Method
Parameters
Return Value
Description
self: Entity
msg: table({
Data: table
Client: bool
)}
None
A necessary function, to receive messages to an entity.
Last updated