Skip to content

Actor

endstone.actor

Classes:

Name Description
Actor

Represents a base actor in the level.

Mob

Represents a mobile entity (i.e. living entity), such as a monster or player.

Actor

Bases: CommandSender

Represents a base actor in the level.

Methods:

Name Description
set_rotation

Sets the actor's rotation.

teleport

Attributes:

Name Type Description
dimension Dimension

Gets the current Dimension this actor resides in.

id int

Returns a unique id for this actor.

is_dead bool

Returns true if this actor has been marked for removal.

is_in_lava bool

Returns true if the actor is in lava.

is_in_water bool

Returns true if the actor is in water.

is_on_ground bool

Returns true if the actor is supported by a block, i.e. on ground.

level Level

Gets the current Level this actor resides in.

location Location

Gets the actor's current position.

runtime_id int

Returns the runtime id for this actor.

scoreboard_tags list[str]

Returns a list of scoreboard tags for this actor.

velocity Vector

Gets this actor's current velocity.

dimension property

dimension: Dimension

Gets the current Dimension this actor resides in.

id property

id: int

Returns a unique id for this actor.

is_dead property

is_dead: bool

Returns true if this actor has been marked for removal.

is_in_lava property

is_in_lava: bool

Returns true if the actor is in lava.

is_in_water property

is_in_water: bool

Returns true if the actor is in water.

is_on_ground property

is_on_ground: bool

Returns true if the actor is supported by a block, i.e. on ground.

level property

level: Level

Gets the current Level this actor resides in.

location property

location: Location

Gets the actor's current position.

runtime_id property

runtime_id: int

Returns the runtime id for this actor.

scoreboard_tags property

scoreboard_tags: list[str]

Returns a list of scoreboard tags for this actor.

velocity property

velocity: Vector

Gets this actor's current velocity.

set_rotation

set_rotation(yaw: float, pitch: float) -> None

Sets the actor's rotation.

teleport

teleport(location: Location) -> None

Teleports this actor to the given location.

teleport(target: Actor) -> None

Teleports this actor to the target Actor.

Mob

Bases: Actor

Represents a mobile entity (i.e. living entity), such as a monster or player.

Attributes:

Name Type Description
is_gliding bool

Checks to see if an actor is gliding, such as using an Elytra.

is_gliding property

is_gliding: bool

Checks to see if an actor is gliding, such as using an Elytra.