... | ... | @@ -2,10 +2,17 @@ |
|
|
|
|
|
Damages the targeted entity.
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
|
|
### Non-Inheritable Attributes
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
| amount | a | The amount of damage to deal | 1 |
|
|
|
|
|
|
### Inheritable Attributes
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
| ignoreArmor | ia, i | Whether or not to ignore armor, but will still use enchantment modifiers when calculating total damage | false |
|
|
|
| preventknockback | pkb, pk | Whether or not to prevent knockback | false |
|
|
|
| preventimmunity | pi | Whether or not to prevent the [damage immunity ticks] on the target by setting them to 0 after the damage is inflicted | false |
|
... | ... | @@ -24,6 +31,7 @@ Damages the targeted entity. |
|
|
|
|
|
[damage immunity ticks]: /skills/mechanics/setnodamageticks
|
|
|
|
|
|
|
|
|
### DamageCause Attribute
|
|
|
This attribute is only available in newer MM 5.0 builds.
|
|
|
All available damage causes can be found on [spigot javadocs](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html)
|
... | ... | |