Mob Effects
On this page(4)
These actions change your zone mobs instead of hitting them. They give a better rarity, a damage-taken debuff, extra mobs or a model animation.
set-rarity, debuff and play-animation pick their mobs the same way:
- with
mobs:, the mobs selector (from,radius,max,order,exclude-target); - without
mobs:, the one mobatnames:{target_pos}by default, or{mob_pos},{to_pos},{from_pos}inside a flow. Withmobs:,atis ignored with a warning.
set-rarity
Gives your alive zone mobs another rarity, one of mobs.rarities of modules/zones/config.yml
(see Fighting and Rarities).
- type: set-rarity
up: 1
mobs: { from: '{target_pos}', radius: 6, max: 5 }Write exactly one of:
| Key | What it does |
|---|---|
rarity: <id> | That rarity (any case). An unknown id changes nothing and is reported once, until the next reload |
up: <number> | Moves that many places in the order the rarities are written (shipped: common, rare, epic, legendary, boss). Negative goes back. It stops at the first and the last. Rounded, -100 to 100. A mob without a rarity goes to the first one with up: 1 |
What changes: the name prefix, the glow and the max health. The health keeps the same share, so a mob at half health stays at half. When it dies, its rewards (reward-bonus) and its kill event follow the new rarity. It stays the same mob: your target stays your target.
A rarity upgrade is a reward multiplier in disguise. A rare that pays twice as much makes
set-rarity up: 1 a strong economy enchant: price it like one.
debuff
Puts a charge of a debuff on your mobs. Every live charge makes the mob take percent more damage from every source. That means your swings, every enchant, your fighters and the second hand.
- type: debuff
id: sunder
percent: 30
max-stacks: 3
duration: 120
refresh: all| Key | Default | What it does |
|---|---|---|
id | the enchant id | The debuff's name: a-z, 0-9, _ and -. Charges of the same id stack |
percent | required | The extra damage per charge, in percent. Above 0, at most 1000 |
max-stacks | 1 | The most charges of that id on one mob, 1 to 64 |
duration | required | How long a charge lasts, in ticks (at most 72000) |
refresh | all | all = every charge of the id restarts its time on each new one; added = each charge keeps its own time |
How charges add up:
- Charges of one id stack up to
max-stacks. When full, a new charge renews the one that ends first. - Different ids add up: a 30% debuff and a 20% debuff make +50%.
- With
refresh: all, a mob you keep hitting stays marked. Withrefresh: added, each charge ends on its own. - A mob loses every charge when it dies. A rarity change keeps them.
{damage}(what the enchants read from the swing) is the damage before the debuff.
After a debuff, two variables tell what it reached:
| Variable | Value |
|---|---|
{debuff_stacks} | The most charges one of those mobs has now (0 when none took it) |
{debuff_percent} | Those charges times this debuff's percent |
- type: entity
display: { text: '&5&lSUNDER &dx{debuff_stacks}', billboard: center }
at: '{target_top}'
lifetime: 20
movement: { type: rise, speed: 0.04 }
requirement: '{debuff_stacks} > 0'The damage hologram, the boss bar, the stats and execute-below all count the bigger hit.
spawn-mobs
The zone's NPC throws extra mobs of your stage, above the area's max-mobs.
- { type: spawn-mobs, count: 3 }| Key | Default | What it does |
|---|---|---|
count | required | 1 to 50 (rounded) |
- The NPC throws one per
npc-launch.throw-interval-ticks. Without an NPC they appear in place, on free spots of the area. - You never have more than
mobs.max-extra-mobsextra mobs at once (20 shipped; 0 = none), inmodules/zones/config.yml. - Extra mobs never come back when they die, and the mob refresh takes them all away.
- Nothing happens outside a mob area.
play-animation
Plays an animation of the model of your zone mobs, once.
- type: play-animation
animation: roar
mobs: { radius: 6, max: 3, order: nearest }| Key | Default | What it does |
|---|---|---|
animation | required | The animation name in the model |
Only an engine model (BetterModel or ModelEngine) plays one. A mob with the vanilla look or an item model plays nothing. See Models.