... | @@ -6,34 +6,44 @@ Some of these won't work on certain mobs under normal circumstances (e.g. SUICID |
... | @@ -6,34 +6,44 @@ Some of these won't work on certain mobs under normal circumstances (e.g. SUICID |
|
|
|
|
|
Damage Modifiers are completely optional, you only need to add the ones you want to use.
|
|
Damage Modifiers are completely optional, you only need to add the ones you want to use.
|
|
|
|
|
|
|
|
See the [spigot javadocs](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html) for a complete list of available damage types.
|
|
|
|
|
|
**Options**
|
|
**Options**
|
|
|
|
|
|
| Modifier | Explanation |
|
|
| Modifier | Explanation |
|
|
| ------------- | ----------------------------------------------------- |
|
|
| ------------------- | ------------------------------------------------------------------ |
|
|
| DROWNING | Damage caused by running out of air while in water. |
|
|
| BLOCK_EXPLOSION | Damage caused by being in the area when a block explodes. |
|
|
| BLOCK_EXPLOSION | Damage caused by being near an exploding block. |
|
|
| CONTACT | Damage caused when an entity contacts a block such as a Cactus, Dripstone (Stalagmite) or Berry Bush. |
|
|
| ENTITY_EXPLOSION | Damage caused by being in the area when an entity, such as a Creeper, explodes. |
|
|
| CRAMMING |Damage caused when an entity is colliding with too many entities due to the maxEntityCramming game rule. |
|
|
| VOID | Damage caused by falling into the void. |
|
|
| CUSTOM | Damage caused by “Custom”, sometimes used by other plugins. |
|
|
| LIGHTNING | Damage caused by being struck by lightning. |
|
|
| DRAGON_BREATH | Damage caused by a dragon breathing fire. |
|
|
| SUICIDE | Damage caused by committing suicide using the command “/kill”. |
|
|
| DROWNING | Damage caused by running out of air while in water |
|
|
| STARVATION | Damage caused by starving due to having an empty hunger bar. |
|
|
| DRYOUT | Damage caused when an entity that should be in water is not. |
|
|
| POISON | Damage caused due to an ongoing poison effect. |
|
|
| ENTITY_ATTACK | Damage caused when an entity attacks another entity. |
|
|
| MAGIC | Damage caused by being hit by a potion or spell. |
|
|
| ENTITY_EXPLOSION | Damage caused by being in the area when an entity, such as a Creeper, explodes. |
|
|
| DRAGON_BREATH | Damage caused by being hit by the enderdragon's breath. |
|
|
| ENTITY_SWEEP_ATTACK | Damage caused when an entity attacks another entity in a sweep attack. |
|
|
| WITHER | Damage caused by the Wither potion effect. |
|
|
| FALL | Damage caused when an entity falls a distance greater than 3 blocks. |
|
|
| FALLING_BLOCK | Damage caused by being hit by a falling block which deals damage. |
|
|
| FALLING_BLOCK | Damage caused by being hit by a falling block which deals damage. |
|
|
| THORNS | Damage caused in retaliation to another attack by the Thorns enchantment. |
|
|
| FIRE | Damage caused by direct exposure to fire |
|
|
| CUSTOM | Damage caused by “Custom”, sometimes used by other plugins. |
|
|
| FIRE_TICK | Damage caused due to burns caused by fire |
|
|
| LAVA | Damage caused by touching lava. |
|
|
| FLY_INTO_WALL | Damage caused when an entity runs into a wall while flying. |
|
|
| MELTING | Damage caused by a snowman melting. |
|
|
| FREEZE | Damage caused from freezing. |
|
|
| FIRE_TICK | Damage caused due to an ongoing fire effect. |
|
|
| HOT_FLOOR | Damage caused when an entity steps on Material.MAGMA_BLOCK. |
|
|
| FIRE | Damage caused by touching fire. |
|
|
| LAVA | Damage caused by direct exposure to lava |
|
|
| HOT_FLOOR | Damage caused by standing on magma blocks. |
|
|
| LIGHTNING | Damage caused by being struck by lightning |
|
|
| FALL | Damage caused when an entity falls a distance greater than 3 blocks. |
|
|
| MAGIC | Damage caused by being hit by a damage potion or spell |
|
|
| SUFFOCATION | Damage caused by standing inside of a block. |
|
|
| MELTING | Damage caused due to a snowman melting |
|
|
| PROJECTILE | Damage caused when attacked by a projectile. |
|
|
| POISON | Damage caused due to an ongoing poison effect |
|
|
| ENTITY_ATTACK | Damage caused when an entity attacks another entity. |
|
|
| PROJECTILE | Damage caused when attacked by a projectile. |
|
|
| CONTACT | Damage caused when an entity touches a block such as a cactus. |
|
|
| SONIC_BOOM | Damage caused by the Sonic Boom attack from Warden |
|
|
|
|
| STARVATION | Damage caused by starving due to having an empty hunger bar |
|
|
|
|
| SUFFOCATION | Damage caused by being put in a block |
|
|
|
|
| SUICIDE | Damage caused by committing suicide. |
|
|
|
|
| THORNS | Damage caused in retaliation to another attack by the Thorns enchantment. |
|
|
|
|
| VOID | Damage caused by falling into the void |
|
|
|
|
| WITHER | Damage caused by Wither potion effect |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Examples**
|
|
**Examples**
|
|
|
|
|
... | | ... | |