Damage
On this page(7)
damage hits your zone mobs. It is the core of most enchants. It has three shapes. The single hit strikes one mob. The spread adds a share to its neighbours. The area hit strikes every mob in a radius.
- type: damage
amount: '{damage} * (1 + {level} / 100)'Keys
| Key | Default | What it does |
|---|---|---|
amount | required | The damage, an expression. Only a value above 0 does something |
at | {target_pos} | Single hit only: which mob is hit (see below) |
spread | none | Single hit only: also hits mobs near the one hit (see below) |
area | none | Turns it into an area hit (see below) |
execute-below | none | A percent. A mob this hit leaves alive below that share of its max health dies too |
Plus the guard: chance and requirement.
Single hit
Without area, the action hits one mob: the one at names, while it is still alive.
at value | The mob hit |
|---|---|
{target_pos} | The mob that procced (the default) |
{mob_pos} | The mob of the running for-each-mob round |
{to_pos} / {from_pos} | The mob a chain jump lands on / starts from |
at takes no offset: it names a mob, not a point. {player_pos} is not a mob: it is a warning and
reads as {target_pos}. When that mob is already dead, nothing happens.
Spread
spread makes a single hit splash. The mob hit takes the whole amount, and at most mobs other alive mobs near it take percent of it. The fight's target stays the same.
- type: damage
amount: '{damage} * 2'
spread: { mobs: 3, radius: 5, percent: 50 } # 3 neighbours within 5 blocks take 50%| Key | Default | Range |
|---|---|---|
spread.mobs | 1 | 1 to 1000 (below 1 = no spread) |
spread.radius | 3 | Blocks around the mob hit, above 0 |
spread.percent | 50 | The share of amount each of them takes, above 0 |
Area hit
With area, the action hits your alive zone mobs within radius of a center, nearest first,
at most max-mobs of them.
- type: damage
amount: '{damage} * 0.5'
area:
center: '{target_pos}'
offset: '0, 0, 0'
radius: '2 + {level} / 250'
max-mobs: 'min(10, 1 + floor({level} / 100))'| Key | Default | Range |
|---|---|---|
area.center | {target_pos} | A position: {player_pos} and the flow positions work too |
area.offset | '0, 0, 0' | Moves the center (it goes inside area) |
area.radius | required | Blocks, above 0. An expression |
area.max-mobs | 1 | 1 to 1000 (below 1 hits none). An expression |
max-mobs defaults to 1. An area hit without max-mobs hits only the nearest mob. Write
max-mobs: 1000 for "every mob in the radius".
With area, the keys at and spread are ignored, with a warning.
Executions
execute-below works with every shape. A mob this damage leaves alive below that percent of its
max health dies too. It is capped at 100, and 0 turns it off.
- type: damage
amount: '{damage} * 12'
execute-below: 40 # a mob left under 40% health diesAn execution is a normal death: it pays the rewards once. The health it had left counts as the damage done, and its damage hologram goes away with it.
execute-below: 100 kills the mob outright on any hit that lands. The shipped reaper is just
that, at a tiny chance.
How enchant damage behaves
- Kills pay. A kill by an enchant pays the stage rewards like a swing kill.
- It never procs enchants. An enchant hit is never a swing.
- Boosters apply through
{damage}.{damage}already carries your damage boosters. A fixed number likeamount: 500is never boosted. - Debuffs apply on top. Each live debuff charge on the mob adds its percent to every hit, enchant hits included.
- Holograms, boss bar and stats count enchant damage like any hit.
- Only your mobs. Every shape hits your own alive zone mobs, never another player's.
- Zones off. Nothing happens while the zones module is off.
Examples
# A big single hit with a level-gated execution.
- { type: damage, amount: '{damage} * 8', execute-below: 25, requirement: '{level} >= 250' }
# Every mob around you, scaling with level.
- type: damage
amount: '{damage} * (2 + {level} / 500)'
area: { center: '{player_pos}', radius: 6, max-mobs: 1000 }
# Hit each mob of a for-each-mob round, harder on wounded mobs.
- type: for-each-mob
mobs: { radius: 8, max: 5, order: lowest-health }
actions:
- type: damage
at: '{mob_pos}'
amount: '{damage} * (1 + (100 - {mob_health_percent}) / 100)'