added information regarding generated variables authored by Lxlp's avatar Lxlp
...@@ -159,6 +159,12 @@ EXAMPLE_MOB: ...@@ -159,6 +159,12 @@ EXAMPLE_MOB:
#### ~onDamaged #### ~onDamaged
Executes the skill when the mob takes damage. Executes the skill when the mob takes damage.
> The associated [@trigger] is the entity that dealt the damage > The associated [@trigger] is the entity that dealt the damage
| [Implemented Placeholders] |
|--------------------------------|
| `<skill.var.damage-amount>` |
| `<skill.var.damage-type>` |
```yml ```yml
EXAMPLE_MOB: EXAMPLE_MOB:
Type: CHICKEN Type: CHICKEN
...@@ -467,9 +473,16 @@ ExampleMob: ...@@ -467,9 +473,16 @@ ExampleMob:
#### ~onHear #### ~onHear
Executes the skill when the mob hears a sound, [if this feature has been enabled](Mobs/Mobs#hearing). Executes the skill when the mob hears a sound, [if this feature has been enabled](Mobs/Mobs#hearing).
The `<skill.var.volume>`[placeholder](Skills/Placeholders#variable-placeholders) can be used in the triggered skill to return a float value between 1 and 15 representing the intensity of the sound (1=quiet footstep, 15=explosion). The `<skill.var.volume>`[placeholder](Skills/Placeholders#variable-placeholders) can be used in the triggered skill to return a float value between 1 and 15 representing the intensity of the sound (1=quiet footstep, 15=explosion).
> The associated [@trigger] is the entity that generated the sound > The associated [@trigger] is the entity that generated the sound
> The associated [@origin] is the location where the sound was generated > The associated [@origin] is the location where the sound was generated
| [Implemented Placeholders] |
|--------------------------------|
| `<skill.var.volume>` |
| `<skill.var.sound-type>` |
```yaml ```yaml
ICanHearYou: ICanHearYou:
Type: ZOMBIE Type: ZOMBIE
...@@ -483,4 +496,5 @@ ICanHearYou: ...@@ -483,4 +496,5 @@ ICanHearYou:
<!-- LINKS --> <!-- LINKS -->
[ThreatTables]: Mobs/ThreatTables [ThreatTables]: Mobs/ThreatTables
[@trigger]: Skills/Targeters/Trigger [@trigger]: Skills/Targeters/Trigger
[@origin]: Skills/Targeters/Origin [@origin]: Skills/Targeters/Origin
\ No newline at end of file [Implemented Placeholders]: Skills/Placeholders#variable-placeholders
\ No newline at end of file