Damage Source - Damage Type (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.12
Syntax
[the] damage type [of %damagesources%]Description
The type of damage of a damage source. Attributes of a damage source cannot be changed once created, only while within the 'custom damage source' section.
Examples
set {_source} to a custom damage source:
set the damage type to magic
set the causing entity to {_player}
set the direct entity to {_arrow}
set the damage location to location(0, 0, 10)
damage all players by 5 using {_source}
on death:
set {_type} to the damage type of event-damage source