The dimension the player will spawn in.
The raknet connection of the player.
Optionalproperties: Partial<PlayerProperties>The additional properties of the player.
ReadonlyabilitiesThe current abilities of the player, and whether they are enabled
ReadonlyattributesThe attributes that are attached to the entity These values are derived from the components and traits of the entity
The target block that the player is currently breaking.
ReadonlycameraThe camera of the player, used for camera effects.
ReadonlyclientThe player's device information.
ReadonlyconnectionThe current raknet connection of the player
The current dimension of the entity.
This should not be dynamically changed, but instead use the teleport method.
ReadonlydynamicThe components that are attached to the entity
The target entity that the player is currently looking at.
ReadonlyflagsThe flags that are attached to the entity These values are derived from the components and traits of the entity
ReadonlyidentifierThe identifier of the entity.
ReadonlyinputThe input info of the entity
Whether the entity is alive or not.
Whether the entity is falling or not.
Whether the entity is moving or not.
Whether the entity is currently ticking or not. If true, this means the behaviors of the entity are being processed. If false, this means the entity currently isn't within the simulation distance from a player.
The target item that the player is currently using.
ReadonlymetadataThe metadata that is attached to the entity These values are derived from the components and traits of the entity
Whether the entity is on the ground or not.
ReadonlyonThe screen display for the player. This is used to hide and show elements on the player's screen. This is also used to send title and subtitle messages to the player.
The container that the player is currently viewing.
The pending forms of the player
ReadonlypermissionsThe permission level of the player.
ReadonlyruntimeThe current runtime id of the entity. (Incremented each time an entity is created)
The scoreboard identity of the entity.
Protected ReadonlyserenityThe serenity instance of the server
ReadonlysharedThe shared properties that are attached to the entity.
These properites are shared to the client to be used in resource pack elements.
They can also be queried via the molang engine for use in resource packs.
ReadonlyskinThe current skin of the player.
Protected ReadonlystorageThe storage of the entity. This is used to persist data about the entity between server restarts.
ReadonlytraitsThe traits that are attached to the player
ReadonlytypeThe type of the entity.
ReadonlyusernameThe username of the player
ReadonlyuuidThe uuid of the player
ReadonlyvelocityThe current velocity of the entity
ReadonlyxuidThe xbox user id of the player
StaticruntimeThe running total of entities that have been created
Whether the player has operator permissions.
Whether the player has operator permissions.
Whether the entity is sneaking or not.
Whether the entity is sprinting or not.
Whether the entity is swimming or not.
Get the position of the entity.
Set the position of the entity.
The current rotation of the entity
The scale of the entity.
The scale of the entity.
The unique id of the entity. (Generated by the server, and exists for the lifetime of the entity)
The variant index of the entity.
The variant index of the entity.
The current world the entity is in.
Add's an effect to the entity.
The effect type that will be applied to the entity
The duration of the effect in seconds.
Optionaloptions: EntityEffectOptionsAdds motion to the entity.
The motion to add.
Add a permission to the player.
The permission to add.
Adds a storage entry to the entity.
The storage entry to add.
Adds a tag to the entity.
The tag to add.
Whether or not the tag was added.
Adds a trait to the entity.
The trait to add to the entity.
Optionaloptions: ConstructorParameters<T>[1]The additional options to pass to the trait.
The trait instance that was added to the entity.
Applies an impulse to the entity.
The impulse to apply.
Changes the dimension of the player.
The dimension to change the player to.
Clears the motion of the entity.
Despawns the entity from the dimension.
Optionaloptions: Partial<EntityDespawnOptions>Disconnect the player from the server
The reason for the disconnection
Optionalcode: DisconnectReasonThe disconnect reason code
OptionalhideDisconnectScreen: falseWhether to hide the disconnect screen
Forces the entity to drop an item from its inventory.
The slot to drop the item from.
The amount of items to drop.
The container to drop the item from.
Whether or not the item was dropped.
Executes a command as the entity.
The command to execute.
The response of the command.
Executes a command in the dimension asynchronously.
The command to execute.
The response of the command.
Gets the cardinal direction of the entity.
The cardinal direction of the entity.
Get a container from the player.
The name of the container to get.
OptionaldynamicId: numberGet the current gamemode of the player.
The gamemode of the player.
Computes the entity's head location
Gets the item the entity is currently holding.
The item the entity is holding
Get the nametag of the entity.
The nametag of the entity.
Get whether the nametag is always visible.
Whether the nametag is always visible.
Get the permissions of the player.
An array of permissions that the player has.
Get the round-trip ping of the player in milliseconds.
The ping of the player in milliseconds.
Gets the selected inventory slot of the entity.
The selected hotbar index of the entity.
Get the spawn point of the player.
The spawn point of the player.
Get a storage entry from the entity.
The name of the storage entry.
The storage entry if it exists, otherwise null.
Gets the tags of the entity.
The tags of the entity.
Gets the specified trait from the entity.
The trait to get from the entity
The trait if it exists, otherwise null
Gets the specified trait from the entity.
The trait to get from the entity
The trait if it exists, otherwise null
Computes the view direction vector based on the current pitch and yaw rotations.
A Vector3f representing the direction the view is pointing.
Checks whether the entity has the effect or not.
The effect type to check if the entity has.
whether the entity has the effect or not.
Check if the player has a specific permission.
The permission to check.
True if the player has the permission, false otherwise.
Check if the entity has a storage entry with the specified name.
The name of the storage entry.
Whether the entity has the storage entry or not.
Whether or not the entity has a tag.
The tag to check.
Whether or not the entity has the tag.
Whether the entity has the specified trait.
The trait to check for
Whether the entity has the trait
Causes a player to interact with the entity.
The player that is interacting with the entity.
The method that the player used to interact with the entity.
Checks if the entity is an item.
Whether or not the entity is an item.
Kills the entity.
Optionaloptions: Partial<EntityDeathOptions>The options for the entity death.
Make an entity play an animation.
The animation name to play.
Optionaloptions: PlayerAnimationOptionsAdditional options for the animation.
Plays a sound that player can only hear.
The name of the sound to play.
Optionaloptions: PlaySoundOptionsThe options for playing the sound.
Removes an effect from the entity.
The effect type to remove from the entity
Remove a permission from the player.
The permission to remove.
Removes a storage entry from the entity.
The name of the storage entry to remove.
Removes a tag from the entity.
The tag to remove.
Whether or not the tag was removed.
Removes the specified trait from the entity.
The trait to remove
Send packets to the player (Normal Priority)
The packets to send to the player
Send packets to the player (Immediate Priority)
The packets to send to the player
Sends a message to the player
The message that will be sent.
Set the current gamemode of the player.
The gamemode to set the player to.
Set the motion of the player.
Optionalvector: Vector3fThe motion vector to set.
Set the nametag of the entity.
The nametag to set the entity to.
Set whether the nametag is always visible.
Whether the nametag should be always visible.
Sets and sends the entity head rotation
The new entity's head rotation
Set the spawn point of the player.
The position to set the spawn point to.
Sets a storage entry in the entity.
The name of the storage entry.
The storage entry to set.
Shows the player profile of another player.
Optionalxuid: string | PlayerThe xuid of the player to show the profile of; default is this player.
Spawn the player in the dimension
Optionaloptions: Partial<EntitySpawnOptions>Starts an item cooldown for a specific category.
The category of the item cooldown.
The duration of the cooldown in ticks.
Stops a sound that is currently playing.
Optionalsound: stringThe name of the sound to stop; default is all sounds.
Teleports the player to a specific position.
The position to teleport the player to.
Optionaldimension: DimensionThe dimension to teleport the player to.
Transfers the player to a different server.
The address to transfer the player to.
The port to transfer the player to.
If the world should be reloaded.
StaticcreateCreates a new unique id for the entity.
The network id of the entity type
The current runtime id of the entity
A generated unique id for the entity
Create a new player instance within a dimension.