Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 136
    • Issues 136
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Mechanics
  • damage

damage · Changes

Page history
updated damage mechanics page authored Aug 21, 2022 by Phillip's avatar Phillip
Hide whitespace changes
Inline Side-by-side
Showing with 15 additions and 26 deletions
+15 -26
  • skills/mechanics/damage.md skills/mechanics/damage.md +15 -26
  • No files found.
skills/mechanics/damage.md
View page @ a2e01684
...@@ -5,33 +5,22 @@ Damages the targeted entity. ...@@ -5,33 +5,22 @@ Damages the targeted entity.
### Attributes ### 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 |
| ignoreArmor | ia | Whether or not to ignore armor | false | | ignoreArmor | ia | Whether or not to ignore armor, but will still use enchantment modifiers like 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 ignore immunities | false | | preventimmunity | pi | Whether or not to ignore immunities | false |
| element | type | Sets the type of damage to be inflicted | false | | element | type | Sets the type of damage to be inflicted | false |
| damagecause | cause | Sets the damage cause for this damage mechanic. (This option is only available for 1.17+) | entity_attack | | damagecause | cause | Sets the damage cause for this damage mechanic.<br/> (This option is only available for 1.17+) | entity_attack |
| ignoreenchants | ie | Whether or not to ignore enchantments when calculating total damage. (This option is only available for 1.19+) | false | | ignoreenchants | ie | Whether or not to ignore enchantments when calculating total damage.<br/> (This option is only available for 1.19+) | false |
### DamageCause ### DamageCause
This attribute is only available in newer MM 5.0 builds. This attribute is only available in newer MM 5.0 builds.
Here are the available damage causes for now: All available damage causes can be found on [spigot javadocs](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html)
``` Note: Only `entity_attack`, `entity_sweep_attack`, `thorns`, `sonic_boom`, `entity_explosion`, and `projectile`,
- entity_attack meaning that `<trigger.name>` will not return "Unknown".
- thorns
- magic
- fire
- fire_tick
- fall
- freeze
- void
- dragon_breath
- lava
- hot_floor
```
### Elements ### Elements
As seen above, the damage mechanic offers the ability to set an "element" for the damage, like so: As seen above, the damage mechanic offers the ability to set an "element" for the damage, like so:
...@@ -39,7 +28,7 @@ As seen above, the damage mechanic offers the ability to set an "element" for th ...@@ -39,7 +28,7 @@ As seen above, the damage mechanic offers the ability to set an "element" for th
- damage{amount=10;element=FIRE} @target ~onUse - damage{amount=10;element=FIRE} @target ~onUse
- damage{amount=10;element=ICE} @target ~onUse - damage{amount=10;element=ICE} @target ~onUse
This element can by named anything, and can be used in a mob's DamageModifiers to alter resistance to the damage type as needed: This element can buy named anything, and can be used in a mob's DamageModifiers to alter resistance to the damage type as needed:
DamageModTest: DamageModTest:
Type: COW Type: COW
...@@ -74,7 +63,7 @@ Ice attacks like the example above. Which uses effects to make the ...@@ -74,7 +63,7 @@ Ice attacks like the example above. Which uses effects to make the
targets of the mob appear as if they were frozen by using particles (On targets of the mob appear as if they were frozen by using particles (On
a repeating interval to create a sort of lingering frost effect as well) a repeating interval to create a sort of lingering frost effect as well)
and inflicting Slowness level 7 (which is -105% movement speed.) slowing and inflicting Slowness level 7 (which is -105% movement speed.) slowing
the mob to a halt. Additionally the mechanic inflicts 120 damage (60 the mob to a halt. Additionally, the mechanic inflicts 120 damage (60
hearts) to players within 6 blocks. hearts) to players within 6 blocks.
### Examples(Requires Premium) ### Examples(Requires Premium)
......
Clone repository
  • Home
  • Changelogs
  • Premium Features
  • Commands and Permissions
  • FAQ / Common Issues
  • Mythic Add-ons
  • Compatible Plugins
  • API Information
  • Packs

Mobs

  • Overview
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: ModelEngine

Skills

  • Overview
  • Mechanics
  • Effects
  • Targeters
  • Triggers
  • Conditions
  • Placeholders
  • Variables
  • Math

Items

  • Overview
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers

Drops & DropTables

Spawning

  • Spawners
  • Random Spawns

Examples