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 informations authored Dec 23, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 11 additions and 7 deletions
+11 -7
  • skills/mechanics/damage.md skills/mechanics/damage.md +11 -7
  • No files found.
skills/mechanics/damage.md
View page @ 96708d83
......@@ -9,7 +9,6 @@ Damages the targeted entity.
| 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 ignore immunities | false |
| element | e, damagetype, type | Sets the type of damage to be inflicted | |
| damagecause | dc, cause | Sets the damage cause for this damage mechanic.<br/> (This option is only available for 1.17+) | entity_attack |
| ignoreenchantments |ignoreenchants, ie | Whether or not to ignore enchantments when calculating total damage.<br>(This option is only available for 1.19+) | false |
| noanger | na | Whether or not to generate anger when damaging the entity | false |
......@@ -18,16 +17,18 @@ Damages the targeted entity.
| damageshelmet| dh | Whether or not the helmet should be damaged | false |
| ignoreeffects| ieff | Whether or not effects should be ignored | false |
| ignoreresistance | ir | Whether or not resistance should be ignored | false |
| tags | | Allows you to specify any number of arbitrary tags on any damage mechanics using tags=THIS,THAT etc. (5.4.0) | NONE |
| poweraffectsdamage | paw | Should the skill's power affect the damage inflicted | true |
| tags | tag | Allows you to specify any number of arbitrary tags for the damage mechanic using `tags=THIS,THAT` | |
| element | e, damagetype, type | *Become one of the Tags* | |
### DamageCause
### 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)
Note: Only `entity_attack`, `entity_sweep_attack`, `thorns`, `sonic_boom`, `entity_explosion`, and `projectile` will return an entity damager,
meaning that `<trigger.name>` will not return "Unknown".
### Elements
### Element Attribute
As seen above, the damage mechanic offers the ability to set an "element" for the damage, like so:
```yaml
......@@ -49,11 +50,14 @@ DamageModTest:
```
These options can also be used in the "onDamaged" aura, using the `damageMods="FIRE 0.5"` attribute.
### Damage Tags (5.4.0)
### Tags Attribute
```yaml
- damage{amount=5;tags=WITCHCURSES}
- damage{amount=5;tags=WITCHCURSE,FIRE}
```
This allows you to set any tag you want on this type of damage to be used with the [DamageTag](https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/conditions/damagetag) condition.
This allows you to set any tag you want on this type of damage to be used with the [DamageTag](https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/conditions/damagetag) condition.
Tags are arbitrary, and can thus have any name, as long as that does not contain invalid characters.
You can set an indefinite number of tags for each damage mechanic.
## Examples
```yaml
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
  • Pins
Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips