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
add_scoreboard_tag

Adds a tag to this actor.

remove_scoreboard_tag

Removes a given tag from this actor.

set_rotation

Sets the actor's rotation.

teleport

Attributes:

Name Type Description
dimension Dimension

Gets the current Dimension this actor resides in.

health int

Gets or sets the entity's health from 0 to its max possible value, where 0 is dead.

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.

max_health int

Gets the maximum health this entity has.

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.

health property writable

health: int

Gets or sets the entity's health from 0 to its max possible value, where 0 is dead.

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.

max_health property

max_health: int

Gets the maximum health this entity has.

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.

add_scoreboard_tag

add_scoreboard_tag(tag: str) -> bool

Adds a tag to this actor.

remove_scoreboard_tag

remove_scoreboard_tag(tag: str) -> bool

Removes a given tag from this actor.

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.