|
## Description
|
|
## Description
|
|
|
|
|
|
Damages the targeted entity.
|
|
Damages the targeted entity.
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
## Attributes
|
|
|
|
|
|
|
|
### Non-Inheritable Attributes
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| amount | a | The amount of damage to deal | 1 |
|
|
| 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 |
|
|
| 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 |
|
|
| 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 |
|
|
| 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. |
... | @@ -24,6 +31,7 @@ Damages the targeted entity. |
|
|
|
|
|
[damage immunity ticks]: /skills/mechanics/setnodamageticks
|
|
[damage immunity ticks]: /skills/mechanics/setnodamageticks
|
|
|
|
|
|
|
|
|
|
### DamageCause Attribute
|
|
### DamageCause Attribute
|
|
This attribute is only available in newer MM 5.0 builds.
|
|
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)
|
|
All available damage causes can be found on [spigot javadocs](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html)
|
... | | ... | |