Skip to content

โš”๏ธ Offense โ€‹

Deal damage to an entity โ€‹

Deals damage to the entity provided. This applies on-hit effects, crit strikes, damage mitigation... (fully compatible with MMOItems and MMOCore).

ParameterAliasDescriptionDefault
amountamt, a, damage, dmg, d, value, val, vThe amount of damage to deal.-
knockbackkb, knockIf true, applies knockback to the target.true
ignore_immunityiiIf true, ignores the target's invulnerability frames.false
damage_typedtype, dtThe damage type(s) to deal. Separate damage types with commas and no spaces. See available damage types here.magic,skill
element-The element name to deal damage with. See available elements herenone
target-The target entity or entities to deal damage to.target or caster
yml
example_script:
  mechanics:
  - 'damage{amount="100 * (1 + <modifier.extra> / 100)";dtype="PHYSICAL,WEAPON";kb=true;ii=false;element=FIRE;target={type=nearby_entities;radius=3}}'

Multiply the current attack damage โ€‹

Multiplies the current attack damage by a given amount.

ParameterAliasDescriptionDefault
valueval, v, amount, amt, a, scalar, s, coef, cThe amount to multiply the damage by. Can be an expression.-
damage_typedtype, dtThe damage type to modify. See available damage types herenone
additive-If true, this damage buff will stack additively with other additive buffs.false
element-The element name to modify. See available elements herenone

If no damage type is provided the entire attack damage is modified. Otherwise only the specific portion of the attack due to the given damage type is affected. If an element name is provided, only damage due to that specific element will be affected.

You cannot provide both an element and a damage type. When providing an element name, the damage type parameter is ignored.

If additive is set to true, this damage buff will stack with stats like PvE damage, Undead Damage (which stacks additively i.e 10% + 10% <=> +20%). Otherwise, buffs stack up geometrically i.e 110% * 110% = 121% <=> +21%.

yml
example_script:
  mechanics:
  - 'multiply_damage{amount="1 + <modifier.extra> / 100";damage_type=PHYSICAL;element=FIRE;additive=false}

Apply potion effect โ€‹

Gives a potion effect to the target entity, for a given duration, with given level. Potion effect names are available on the Spigot javadocs.

ParameterAliasDescriptionDefault
effecteff, e, type, peName of potion effect to take off-
durationdur, d, ticks, t, timeDuration of potion effect in ticks-
levellvl, lLevel of potion effect (0 = level 1, 1 = level 2, etc.)0
ambientambIf true, the potion effect will be ambient.false
particlespartIf false, the potion effect will have no particles.true
iconicIf false, the potion effect will have no icon.true
target-The target entity to set on fire.target or caster
yml
example_script:
  mechanics:
  - 'potion{type=INCREASE_DAMAGE;level=5;duration=80;ambient=true;particles=false;icon=true;target=caster}'

Remove potion effect โ€‹

Takes off a potion effect from the target entity. Potion effect names are available on the Spigot javadocs.

ParameterAliasDescriptionDefault
effecteff, e, type, peName of potion effect to take off-
target-The target entity to set on fire.target or caster
yml
example_script:
  mechanics:
  - 'remove_potion{effect=slowness;target=caster}'

Set on fire โ€‹

Sets the target entity on fire for a certain amount of time (in ticks).

ParameterAliasDescriptionDefault
tickst, duration, dur, d, timeAmount of time to set the entity on fire for, in ticks.-
stackaddIf true, adds the provided ticks to the entity's current fire ticks instead of setting it.false
max-If true, takes to the maximum between the current fire ticks and the provided ticks.false
min-If true, takes the minimum between the current fire ticks and the provided ticks.false
target-The target entity to set on fire.target or caster

stack has precedence over max and min, and max has precedence over min.

yml
example_script:
  mechanics:
  - 'set_on_fire{ticks=20;stack=false;max=false;min=false;target=target}'

Set no damage ticks โ€‹

ParameterAliasDescriptionDefault
tickst, duration, dur, d, timeDuration of invulnerability in ticks10
stackaddIf true, adds the provided ticks to the entity's no damage ticks instead of setting it.false
max-If true, takes the maximum between the current no damage ticks and the provided ticks.false
min-If true, takes the minimum between the current no damage ticks and the provided ticks.false
target-The target entitytarget or caster

Makes the target entity invulnerable for the provided amount of time (in ticks).

yml
example_script:
  mechanics:
  - 'set_no_damage_ticks{target=caster;ticks="40 + 20 * <modifier.extra>"}'

Powered by VitePress