updated implemented placeholders of onattack, ondamaged and onbowhit authored by Lxlp's avatar Lxlp
...@@ -150,6 +150,13 @@ ImmortalCow: ...@@ -150,6 +150,13 @@ ImmortalCow:
#### ~onAttack #### ~onAttack
Executes the skill when the mob attacks an entity. Executes the skill when the mob attacks an entity.
> The associated [@trigger] is the entity that was attacked > The associated [@trigger] is the entity that was attacked
| [Implemented Placeholders] |
|--------------------------------|
| `<skill.var.damage-amount>` |
| `<skill.var.damage-type>` |
| `<skill.var.damage-cause>` |
```yml ```yml
EXAMPLE_MOB: EXAMPLE_MOB:
Type: CHICKEN Type: CHICKEN
...@@ -168,6 +175,7 @@ Executes the skill when the mob takes damage. ...@@ -168,6 +175,7 @@ Executes the skill when the mob takes damage.
|--------------------------------| |--------------------------------|
| `<skill.var.damage-amount>` | | `<skill.var.damage-amount>` |
| `<skill.var.damage-type>` | | `<skill.var.damage-type>` |
| `<skill.var.damage-cause>` |
```yml ```yml
EXAMPLE_MOB: EXAMPLE_MOB:
...@@ -350,6 +358,13 @@ EXAMPLE_MOB: ...@@ -350,6 +358,13 @@ EXAMPLE_MOB:
#### ~onBowHit #### ~onBowHit
Executes a skill when the mob's projectile hits an entity. Executes a skill when the mob's projectile hits an entity.
> The associated [@trigger] is the entity that has been hit > The associated [@trigger] is the entity that has been hit
| [Implemented Placeholders] |
|--------------------------------|
| `<skill.var.damage-amount>` |
| `<skill.var.damage-type>` |
| `<skill.var.damage-cause>` |
```yaml ```yaml
NotYourAverageSkeleton: NotYourAverageSkeleton:
Type: SKELETON Type: SKELETON
... ...
......