Entity
The base of all networked things, including players, horses, NPCs, dogs, props, stashes and markers. new Entity(id) returns the existing object with that network id. It never spawns anything, and it throws for an unknown id.
entity.id
idThe network id, the same on the server and in all players' games.
entity.state
stateThe entity's shared state, for players, horses and NPCs.
entity.dimension
dimensionThe dimension the entity is in. Entities see each other only in the same dimension, and 0 is the shared one.
entity.position
positionThe entity's location in world coordinates.
entity.rotation
rotationThe direction the entity faces.