Damage Cause (Type) — Skript

Addon: Skript · Category: Type · Since: 2.0 · Usage: kill, world border, contact, attack, sweep attack, projectile, suffocation, fall, fire, burning, melting, lava, drowning, block explosion, entity explosion, void, lightning, suicide, starvation, poison, potion, wither, falling block, thorns, dragon's breath, hitting wall while flying, magma, campfire, cramming, dryout, freeze, sonic boom, unknown

Syntax

damagecause

Description

The cause/type of a damage event, e.g. lava, fall, fire, drowning, explosion, poison, etc. Please note that support for this type is very rudimentary, e.g. lava, fire and burning, as well as projectile and attack are considered different types.

View source