Skip to content

Mechanics: customDamage

muhahahahe edited this page Jan 5, 2018 · 5 revisions

Use this mechanic to inflict damage to an entity.

This also includes a fix for ignoring armor and absorbtion hearts in combination with prevent knockback.

Attributes

Attribute Aliases Description Default
amount a damage value to inflict
can be ranged (5to10)
can not be negative
1
preventknockback pkb | pk if used the target will not get knocked back false
ignorearmor ignorearmour | ia | i if used the damage amount will go thru the armor false
ignoreabsorbtion ignoreabs | iabs if used the damage amount will ignore the absorbtion hearts from gold/god apples false
ignorepower ip false
preventimmunity pi ignores immunity of the target to a specific damage cause false
percentage p use if the damage amount should be dealt in percentage false
percentcurrent pcur | pc use this in combination with percentage to deal percantage damage based of the current health false
damagecause cause | dc the type of damage to deal
BukkitEntityDamageEvent
CUSTOM

Example

- customdamage{a=1to5} @Target
This will deal between 1 to 5 damage to the target.

- customdamage{a=0.1;p=true;pcur=true} @Target
This will deal 10% damage of the targets current health.

Clone this wiki locally