damage
Deals damage to the target
Aliases
Configuration Fields (1)
| Name | Type | Default | Description |
|---|---|---|---|
| amount a | PlaceholderDouble | 1 | The 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
Triggers a skill when the aura holder takes damage
Checks the damage amount that caused the current skill tree. Only works with onDamaged trigger or aura.
Checks the damage cause of the current skill tree. Only works with onDamaged trigger or aura.
Checks if the damage that caused the current skill tree has a specific tag.
Checks the target's last damage cause
Used in stat triggers to check the increased damage (as a multiplier).
Deals a percent of the mob's damage stat as damage
Deals damage to the target and heals the caster
- Author:
- Ashijin
