1. Animals
  2. Abilities
  3. Conditions
  4. Tool/Weapon
  5. Weapon Mods
  6. Orb
  7. Equipped
  8. Food/Medicine
  9. Furniture/Construction
  10. Color/Pattern
  11. Items
  12. Attributes
  13. Creatures
  14. Blocks
  15. Props
  16. API Types
  17. API Functions
entity

ID:3
Icon:ibulletpoint.2xn

entity

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 prowess

The entity's level of prowess (0~50) representing how undefeated in combat they are.

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.

item weapon

The entity's currently equipped weapon.

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).