Skip to main content

damage

Deals damage to targets.

Parameters​

ParameterTypeDefaultDescription
amountnumber1.0Damage amount
typestringgenericDamage type

Damage Types​

TypeDescription
genericNormal damage
fireFire damage
explosionExplosion damage (knockback)
magicMagic damage
fallFall damage
drownDrowning damage
freezeFreezing damage
lightningLightning damage

See damage types reference for more details.

Examples​

Skills:
# Explosion on death
- damage{amount=10, type=explosion} @PlayersInRadius{r=5} ~onDeath

# Fire aura at low health
- damage{amount=2, type=fire} @PlayersInRadius{r=3} ~health{below=25}

# Reflect damage to attacker
- damage{amount=3, type=magic} @Attacker ~onHurt

Common Patterns​

Death Explosion​

Skills:
- damage{amount=15, type=explosion} @PlayersInRadius{r=8} ~onDeath

Thorns Effect​

Skills:
- damage{amount=2} @Attacker ~onHurt

Enrage Aura​

Skills:
# Constant fire damage when low health
- damage{amount=1, type=fire} @PlayersInRadius{r=4} ~health{below=25}

Phase Transition Attack​

Skills:
- damage{amount=10, type=magic} @PlayersInRadius{r=10} ~health{below=50, once=true}