Skip to content

Entities

Entities are split into categories. They’re communicated to the client on EnterWorldResponse. Each category (entity map) has its own attributes (Tick fields). You can take a look at the attributes in your EnterWorldResponse callback.

game.on("EnterWorldResponse", (response: EnterWorldResponse) => {
for (const entityMap of e.entities!) {
console.log(entityMap.id, entityMap.defaultTick);
}
});

Entity map types

NAMEIDNOTES
ZombieEntity0x0ed7fd27
SprayEntity0x1e1837cc
PortalEntity0x2293598d
PlayerEntity0x4254ae62Includes bots
CrystalEntity0x58eafdbdCrystal Clash crystals
VehicleEntity0x5d0b456be.g. Hoverboard
PhysicsEntity0x8e187e23Likely unused
PlaneEntity0x8fe5d35b
ItemEntity0xa7ecd754
ProjectileEntity0xb6cebbaa
BuildingEntity0xdf853d95
PropEntity0xecaa7004
GasEntity0xf15cdbb8The zone
NpcEntity0xf4de4be0No longer in use
UnknownEntity0xf5cf683eNo idea
PlayerBuildingEntity0xf63a37d6e.g. Snow Wall

Entity list

You can obtain the entity list or a specific entity using the following Game methods:

  • getEntityList()
    returns the entire entity list
  • getEntitiesByType(type)
    returns all entities in the specified entity map
  • getEntityByUid(uid)
    returns an entity with the specified uid (unique identifier)
  • getPlayerByName(name)
    returns the FIRST player in the list with the specified name