Skip to content

Mechanics: customDamage

muhahahahe edited this page Jan 25, 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

</tr>
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 of the targets max health false
percentcurrent pcur | pc use this in combination with percentage to deal percantage damage based of the targets current health or in combination with usecaster true its the casters current health false
usecaster uc use this in combination with percentage and the percentage damage dealt is based of the casters max health false
reducedamagebydistance rdbd reduces the damage dealt in % for each block between caster and target
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.

- customdamage{a=10;rdbd=0.1} @Target
If the target is 5 blocks away from the caster it will deal 5 damage, because 1 damage(10%) is reduced for each block away from the caster.
Clone this wiki locally