Readonly
runtimeThe runtime ID of the entity. Local player is always 1.
Gets the entity type ID.
https://minecraft.fandom.com/wiki/Bedrock_Edition_data_values#Entity_IDs
Gets the value of a MoLang variable. Returns null
if the variable was not found.
The variable name. Example: variable.is_sneaking
Gets the value of a MoLang variable. Returns null
if the variable was not found.
The variable name. Example: variable.is_sneaking
Gets the movement state of the player (i.e. the movement keys held.)
[Experimental] sets a MoLang variable's value. Returns null
if unsuccessful and the number that was set if it was successful.
The variable name. Example: variable.is_sneaking
The variable's new value.
Sets the movement state of the player
The state to update to
Sets the entity's movement velocity.
This function is restricted - it only works if you have operator.
The new velocity
Generated using TypeDoc
A class representing an in-game entity.