1. Animals
  2. Abilities
  3. Conditions
  4. Tool/Weapon
  5. Equipped
  6. Food/Medicine
  7. Items
  8. Attributes
  9. Creatures
  10. Blocks
  11. Props
  12. API Types
  13. API Functions



This table contains fields that describe a single entity within the game world. These fields are only meant to be read, modifying any of them will not affect the associated entity.

integer world

The world ID of the current map this entity exists inside of.

bool visible

True if this entity is currently visible on the user's screen.

integer index

The entity's current index, valid only for the current frame.

vector position

Current location of the entity in its current map.

blockpos location

Current world ID and block coordinates of the entity.

color shade

The entity's current shade due to lights and shadows in their map.

integer level

The entity's current experience level.

integer hp

The entity's current hit points.

integer hpmax

The entity's maximum hit point capacity.

integer ep

The entity's current energy points.

integer epmax

The entity's maximum energy point capacity.

string name

The name given to this entity.

bool isplayer

True if this entity contains player character information (experience level, hit points, etc.).

bool isuser

True if this entity is controlled by the user (in single player context), or by any user (in multiplayer context).