Player Effects
On this page(5)
These actions reward or buff the player who owns the enchant. They give currency, boosters, potion effects or an extra roll of their enchants.
give-currency
Pays the player a currency.
- type: give-currency
currency: money
amount: '10 * {level}'| Key | Default | What it does |
|---|---|---|
currency | required | A currency id (a file of currencies/). An unknown currency pays nothing, with a warning |
amount | required | An expression. Only a value above 0 pays |
- It pays
amounttimes the player's booster total of that currency (see Boosters). - A
messageoractionbarthat shows the amount shows it before the booster. - Each payment is logged in the currency log as
enchant:<id>.
add-booster
Gives the player a booster, the same kind as /dungeons admin boost give and the API. It shows in /boosts and the boost placeholders.
- type: add-booster
id: 'frenzy-{enchant_id}'
name: '&cFrenzy'
target: damage
multiplier: '0.1 + {level} / 1000'
stacking: additive
time: 10s
persistent: false
if-exists: stack
max-multiplier: 2| Key | Default | What it does |
|---|---|---|
id | required | The booster's id: a-z, 0-9, _ . : -, 1 to 64 characters, lowercased when it runs. {player}, {enchant_id}, {level} and the number variables are pasted. One id per player |
name | the display-name | Its name in /boosts (variables, PlaceholderAPI, colors) |
target | required | damage, swings, enchants (every enchant chance), enchant:<id> (one enchant's chance), luck, currency:<id> or a currency id (money) |
multiplier | required | An expression. Additive: the bonus (1 = +1 to the base, so x2 alone). Multiplicative: the factor (2 = x2). 0 or less adds nothing |
stacking | additive | additive or multiplicative (below) |
time | 0 | How long: 30s, 5m, 1h, 1d or a number of seconds. 0 = for good |
persistent | false | true = stored in the database, kept after a quit and a restart. false = in memory until the server stops |
if-exists | replace | What happens when the player already has a booster of that id (below) |
max-multiplier | 0 | The most multiplier it reaches, stacking included. 0 = no limit |
How a target's total works: (1 + the additive bonuses) x (the sum of the multiplicative factors, or 1 without any). An additive 0.5 and an additive 1 make x2.5.
if-exists | Effect |
|---|---|
replace | The new booster takes its place |
keep | Nothing changes |
extend | The same multiplier, the time added to the time left (a for-good one stays so) |
stack | The multiplier is added to the one you have, and the time starts again |
persistent: true writes the database on every proc. Give such an enchant a low chance or a
cooldown. Timed buffs from frequent procs should stay persistent: false.
A refused id, name or target is reported once in the console, until the next /dungeons reload.
remove-booster
Takes the player's booster of that id away. Nothing happens when they have none.
- type: remove-booster
id: 'frenzy-{enchant_id}'| Key | Default | What it does |
|---|---|---|
id | required | The id, with the same variables as add-booster |
potion
A vanilla potion effect for the player, only while they stand in their zone. The zone is the mob area of the stage they are shown, plus mobs.leave-area-distance.
- type: potion
effect: speed
amplifier: 'floor({level} / 500)' # Speed I, II from level 500, III at 1000
duration: 100 # 5 seconds
particles: false| Key | Default | What it does |
|---|---|---|
effect | required | An effect key: speed, jump_boost, night_vision, regeneration, resistance, haste, slow_falling... (minecraft: is added when it has no namespace) |
amplifier | 0 | 0 = level I, 1 = level II. An expression, 0 to 255 |
duration | required | Ticks, an expression, 1 to 6000 |
particles | true | Its particles show |
icon | true | Its icon shows |
ambient | false | The fainter beacon look |
- Outside the zone the action gives nothing.
- An effect it gave is taken away as soon as the player leaves the zone, changes world or quits.
- A stronger or longer effect of the same type from somewhere else is kept, and never taken away.
- Strength and weakness do nothing to zone mobs: their damage is the sword's.
proc-enchants
One more swing of the player: their enchants roll again on the mob the action is at. Level,
chance, boosters, cooldown and enchants.max-sequences work as on a real swing.
- type: proc-enchants
mode: whitelist
enchants: [critical, lightning]
trigger: swing
damage: '{damage} * 0.5'| Key | Default | What it does |
|---|---|---|
mode | blacklist | blacklist = every enchant but the listed ones; whitelist = only the listed ones |
enchants | none | A list of enchant ids (or one id) |
trigger | swing | swing = the swing enchants, while that mob lives; kill = the kill enchants, once a damage action of this proc killed that mob (once per death); both = each when it applies |
damage | '{damage}' | The {damage} of those procs |
- The mob is the one of the running
for-each-moborchainround, else the mob of the proc. - It never procs this enchant, a second hand, or an enchant that has a
proc-enchantsof its own. There is no loop: it is one level deep. - It counts no swing and adds nothing to the swing stats.
- With
blacklistand noenchants, every eligible enchant may roll.