SelectedEntityInfo

Members


type

string

The type of entity, example "player"

fullType

string

The full type of entity, example "minecraft:player"

nametag

string

The name of the entity

username

any

string|nil The username of the entity, players only

yaw

number

The yaw viewing angle of the entity

pitch

number

The pitch viewing angle of the entity

x

integer

The X position of the entity

y

integer

The Y position of the entity

z

integer

The Z position of the entity

ppx

number

The precise X position of the entity

ppy

number

The precise Y position of the entity

ppz

number

The precise Z position of the entity

vx

integer

The X velocity of the entity

vy

integer

The Y velocity of the entity

vz

integer

The Z velocity of the entity

molangVariables

table

The molang variables of the entity.




Obtaining

The following function can return this type.

[SelectedEntityInfo] entity = player.selectedEntity()