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
| Name | Description |
|---|---|
DamageSource | Represents a source of damage. |
classDamageSource
DamageSource()Represents a source of damage.
Attributes
| Name | Type | Description |
|---|---|---|
actor | Actor | Get the actor that caused the damage to occur. |
damaging_actor | Actor | Get the actor that directly caused the damage. |
is_indirect | bool | Get if this damage is indirect. |
type | str | Get the damage type. |
attractorproperty
actor: ActorGet the actor that caused the damage to occur.
attrdamaging_actorproperty
damaging_actor: ActorGet the actor that directly caused the damage.
attris_indirectproperty
is_indirect: boolGet if this damage is indirect.
attrtypeproperty
type: strGet the damage type.