Description
Simulates a physical hit from the mob. Takes melee stats and attribute modifiers into account.
Inherits every attribute of the Damage mechanic.
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
multiplier | m | The percentage of damage to deal | 1 |
forcedDamage | fd, forced | If this attribute is set, the one specified will be the amount of flat damage that will be inflicted, without consideration for attribute modifiers and similar other modifiers |
This mechanic inherits every attribute of the Damage mechanic
- The
amount
attribute is ignored- The
triggerSkills
attribute is defaulted attrue
- The
damagecause
attribute is set atENTITY_ATTACK
- The
tags
attribute will always have amelee
tag.
Examples
This example will make the mob deal 150% of its configured melee damage to its target when its being attacked. Ignoring armors. In this case it would deal 15 damage total since the mob's melee damage is 10.
HitMob:
Type: Zombie
Damage: 10
Skills:
- hit{m=1.5;ia=true} @target ~onDamaged
Aliases
- physicalDamage
- meleeHit