updated trigger links authored by Lxlp's avatar Lxlp
......@@ -19,36 +19,36 @@ Links to triggers added by addon plugins. Any triggers from these links will not
# Triggers
**Table of all available triggers:**
| Trigger | When it fires... |
|----------------------------------------|--------------------------------------------------------------|
| onCombat | Default |
| [onAttack](#onattack) | When the mob hits something |
| [onDamaged](#ondamaged) | When the mob is damaged |
| [onSpawn](#onspawn) | When the mob spawns |
| [onDespawn](#ondespawn) | When the mob is despawned |
| [onReady / onFirstSpawn](#onready) | Triggered the first time a mob is spawned from a spawner |
| [onLoad](#onload) | When the mob is loaded after a server restart |
| [onSpawnOrLoad](#onspawnorload) | When the mob either [spawns](#onspawn) or [loads](#onload) |
| [onDeath](#ondeath) | When the mob dies |
| [onTimer:*#*](#ontimerticks) | Every \# ticks (where \# is the interval in ticks) |
| [onInteract](#oninteract) | When the mob is right-clicked |
| [onPlayerKill](#onplayerkill) | When the mob kills a player |
| [onEnterCombat](#onentercombat) | When the mob enters combat (requires threat tables be on) |
| [onDropCombat](#ondropcombat) | When the mob leaves combat (requires threat tables be on) |
| [onChangeTarget](#onchangetarget) | When the mob changes targets (requires threat tables be on) |
| [onExplode](#onexplode) | When the mob explodes (typically only used for creepers) |
| [onPrime](#onprime) | When the creeper charges up for an explosion |
| [onCreeperCharge](#oncreepercharge) | When the creeper is charged (when lightning hits a creeper) |
| [onTeleport](#onteleport) | When the mob teleports (typically only used for endermen) |
| [onSignal:*[signal]*](#onsignalsignal) | When the mob receives a signal |
| [onShoot](#onshoot) | When the mob fires a projectile |
| [onBowHit](#onbowhit) | When the mob's fired projectile hits an entity |
| [onTame](#ontame) | When the mob gets tamed |
| [onBreed](#onbreed) | When the mob breeds with another mob. |
| [onTrade](#ontrade) | When the Villager completes a trade. Requires Paper |
| [onChangeWorld](#onchangeworld) | When the mob changes world |
| [onBucket](#onbucket) |When the cow is milked or an entity is bucketed (axolotl etc.)|
| [onSkillDamage](#onskilldamage) | When the mob deals damage to other entities via a mechanic |
| [onHear](#onhear) | When the mob hears a sound, [if enabled](/Mobs/Mobs#hearing) |
|----------------------------------------|---------------------------------------------------------------|
| [onCombat](/Skills/Triggers/onCombat) | Default |
| [onAttack](/Skills/Triggers/onattack) | When the mob hits something |
| [onDamaged](/Skills/Triggers/ondamaged) | When the mob is damaged |
| [onSpawn](/Skills/Triggers/onspawn) | When the mob spawns |
| [onDespawn](/Skills/Triggers/ondespawn) | When the mob is despawned |
| [onReady / onFirstSpawn](/Skills/Triggers/onready) | Triggered the first time a mob is spawned from a spawner |
| [onLoad](/Skills/Triggers/onload) | When the mob is loaded after a server restart |
| [onSpawnOrLoad](/Skills/Triggers/onspawnorload) | When the mob either [spawns](/Skills/Triggers/onspawn) or [loads](/Skills/Triggers/onload) |
| [onDeath](/Skills/Triggers/ondeath) | When the mob dies |
| [onTimer:*#*](/Skills/Triggers/ontimerticks) | Every \# ticks (where \# is the interval in ticks) |
| [onInteract](/Skills/Triggers/oninteract) | When the mob is right-clicked |
| [onPlayerKill](/Skills/Triggers/onplayerkill) | When the mob kills a player |
| [onEnterCombat](/Skills/Triggers/onentercombat) | When the mob enters combat (requires threat tables be on) |
| [onDropCombat](/Skills/Triggers/ondropcombat) | When the mob leaves combat (requires threat tables be on) |
| [onChangeTarget](/Skills/Triggers/onchangetarget) | When the mob changes targets (requires threat tables be on) |
| [onExplode](/Skills/Triggers/onexplode) | When the mob explodes (typically only used for creepers) |
| [onPrime](/Skills/Triggers/onprime) | When the creeper charges up for an explosion |
| [onCreeperCharge](/Skills/Triggers/oncreepercharge) | When the creeper is charged (when lightning hits a creeper) |
| [onTeleport](/Skills/Triggers/onteleport) | When the mob teleports (typically only used for endermen) |
| [onSignal:*[signal]*](/Skills/Triggers/onsignalsignal) | When the mob receives a signal |
| [onShoot](/Skills/Triggers/onshoot) | When the mob fires a projectile |
| [onBowHit](/Skills/Triggers/onbowhit) | When the mob's fired projectile hits an entity |
| [onTame](/Skills/Triggers/ontame) | When the mob gets tamed |
| [onBreed](/Skills/Triggers/onbreed) | When the mob breeds with another mob. |
| [onTrade](/Skills/Triggers/ontrade) | When the Villager completes a trade. Requires Paper |
| [onChangeWorld](/Skills/Triggers/onchangeworld) | When the mob changes world |
| [onBucket](/Skills/Triggers/onbucket) |When the cow is milked or an entity is bucketed (axolotl etc.)|
| [onSkillDamage](/Skills/Triggers/onskilldamage) | When the mob deals damage to other entities via a mechanic |
| [onHear](/Skills/Triggers/onhear) | When the mob hears a sound, [if enabled](/Mobs/Mobs#hearing) |
<!--
ADD THIS TRIGGER BACK WHEN IT WORKS
......@@ -101,13 +101,14 @@ damage when it is between 10% and 90% health.
# The @trigger Targeter
You may have noticed there is an `@trigger` targeter in the examples
You may have noticed there is an [`@trigger`](/Skills/Targeters/Trigger) targeter in the examples
shown above, and listed in the [targeters](/Skills/Targeters) section. The `@trigger` will target the
entity that "caused" the skill to trigger, i.e. when a player damages a mob and
that mob has an ~onDamaged skill, it will target that player.
If a signal is being sent to a mob, it will target the mob that sent
the signal, and so on.
<!--
# All Available Triggers
#### ~onSpawn
Executes the skill when the mob spawns.
......@@ -459,7 +460,7 @@ EXAMPLE_MOB:
```
#### ~onSpawnOrLoad
Executes the skill when either [~onSpawn](#onspawn) or [~onLoad](#onload) would trigger.
Executes the skill when either [~onSpawn](/Skills/Triggers/onspawn) or [~onLoad](/Skills/Triggers/onload) would trigger.
```yml
EXAMPLE_MOB:
Type: VILLAGER
......@@ -527,6 +528,8 @@ ICanHearYou:
- message{m="I can hear you <trigger.name>! <skill.var.volume>? Way too loud!"} @trigger ~onHear
```
-->
<!-- LINKS -->
[ThreatTables]: /Mobs/ThreatTables
......
......