endstone.damage

Classes relating to damage types and sources applicable to mobs (living entities).

Classes relating to damage types and sources applicable to mobs (living entities).

Classes

NameDescription
DamageSource

Represents a source of damage.

classDamageSource

DamageSource()

Represents a source of damage.

Attributes

NameTypeDescription
actorActor

Get the actor that caused the damage to occur.

damaging_actorActor

Get the actor that directly caused the damage.

is_indirectbool

Get if this damage is indirect.

typestr

Get the damage type.

attractorproperty

actor: Actor

Get the actor that caused the damage to occur.

attrdamaging_actorproperty

damaging_actor: Actor

Get the actor that directly caused the damage.

attris_indirectproperty

is_indirect: bool

Get if this damage is indirect.

attrtypeproperty

type: str

Get the damage type.

On this page