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_name_tag_always_visible |
bool
|
Gets or sets if the actor's name tag is always visible or not. |
is_name_tag_visible |
bool
|
Gets or sets if the actor's name tag is visible or not. |
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. |
name_tag |
str
|
Gets or sets the current name tag of the actor. |
runtime_id |
int
|
Returns the runtime id for this actor. |
score_tag |
str
|
Gets or sets the current score tag of the actor. |
scoreboard_tags |
list[str]
|
Returns a list of scoreboard tags for this actor. |
velocity |
Vector
|
Gets this actor's current velocity. |
health
property
writable
¶
health: int
Gets or sets the entity's health from 0 to its max possible value, where 0 is dead.
is_name_tag_always_visible
property
writable
¶
is_name_tag_always_visible: bool
Gets or sets if the actor's name tag is always visible or not.
is_name_tag_visible
property
writable
¶
is_name_tag_visible: bool
Gets or sets if the actor's name tag is visible or not.
is_on_ground
property
¶
is_on_ground: bool
Returns true if the actor is supported by a block, i.e. on ground.
scoreboard_tags
property
¶
Returns a list of scoreboard tags for this actor.
remove_scoreboard_tag
¶
Removes a given tag from this 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. |