Mechanic

damage

Deals damage to the target

Aliases

d

Configuration Fields (1)

NameTypeDefaultDescription
amount
a
PlaceholderDouble1The amount of damage to deal

Examples & Notes

Examples

  Skills:
  - damage{amount=20;ignoreArmor=true} @target ~onTimer:20
FreezeBlast:
  Skills:
  - effect:sound{s=block.fire.extinguish;v=1;p=0.5} @PIR{r=6}
  - effect:particles{p=explode;a=8;vs=0.5;hs=0.5;s=0;y=1;repeat=5;repeatInterval=20} @PIR{r=6}
  - effect:particles{p=drip_water;a=10;vs=0.5;hs=0.5;s=0;y=1;repeat=5;repeatInterval=20} @PIR{r=6}
  - potion{t=SLOW;d=120;l=6} @PIR{r=6}
  - damage{a=120;pkb=true} @PIR{r=6}

A more complex use of the damage mechanic can give illusions of say Ice attacks like the example above. Which uses effects to make the targets of the mob appear as if they were frozen by using particles (On a repeating interval to create a sort of lingering frost effect as well) and inflicting Slowness level 7 (which is -105% movement speed.) slowing the mob to a halt. Additionally, the mechanic inflicts 120 damage (60 hearts) to players within 6 blocks.

Premium Example

  Skills:
  - damage{amount=<caster.var.somevariable> * 0.5 + 1} @target ~onTimer:20

This skill above does “<caster.var.somevariable> * 0.5 + 1” damage if the varibute: <caster.var.somevariable>'s value is 5,this mechaine will does 3.5 damage

Universal Mechanic Options

Mentioned by

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.