entity
Accessors for an entity handle. entity.pos(e) and e:pos() are the same call.
Functions
15 functions. Signatures are generated from the client, so they describe the build you are running.
entity.pos(e:Entity) -> x:number, y:number, z:numberentity.lastPos(e:Entity) -> x:number, y:number, z:numberPosition at the start of the tick, for interpolation.
entity.velocity(e:Entity) -> x:number, y:number, z:numberentity.rotation(e:Entity) -> yaw:number, pitch:numberentity.name(e:Entity) -> stringentity.type(e:Entity) -> stringRegistry id, e.g. 'minecraft:zombie'.
entity.health(e:Entity) -> numbernil for entities that have no health, such as items.
entity.maxHealth(e:Entity) -> numberentity.absorption(e:Entity) -> numberentity.distance(e:Entity) -> numberFrom the local player.
entity.isPlayer(e:Entity) -> booleanentity.isLiving(e:Entity) -> booleanentity.isFriend(e:Entity) -> booleanHonours the client's friend list.
entity.isValid(e:Entity) -> booleanFalse once the entity is gone. Always check a cached handle.
entity.boundingBox(e:Entity) -> table{minX, minY, minZ, maxX, maxY, maxZ}.