Changes
Page history
test
authored
Dec 31, 2022
by
Phillip
Hide whitespace changes
Inline
Side-by-side
Skills/Triggers.md
View page @
e9e3998a
...
...
@@ -5,37 +5,36 @@ mobs skill configuration section.
IN THEM.
**
</u>
Triggers can only be used
*to activate*
the meta-skill
itself.
<!--
**Table of all available triggers:**
| Trigger | When it fires... |
|---------------------|--------------------------------------------------------------|
| onCombat | Default |
|
onAttack
| When the mob hits something |
| onDamaged | When the mob is damaged |
| onSpawn | When the mob spawns |
| onDespawn | When the mob is despawned |
| onFirstSpawn | Triggered the first time a mob is spawned from a spawner |
| onLoad | When the mob is loaded (spawning or loading after a restart) |
| onDeath | When the mob dies |
| onTimer:
\#
| Every
\#
ticks (where
\#
is the interval in ticks) |
| onInteract | When the mob is right-clicked |
| onKill | When something kills a mob |
| onKillPlayer | When the mob kills a player |
| onPlayerDeath | When a player dies for any reason |
| onEnterCombat | When the mob enters combat (requires threat tables be on) |
| onDropCombat | When the mob leaves combat (requires threat tables be on) |
| onChangeTarget | When the mob changes targets (requires threat tables be on) |
| onExplode | When the mob explodes (typically only used for creepers) |
| onPrime | When the creeper charges up for an explosion |
| onTeleport | When the mob teleports (typically only used for endermen) |
| onSignal | When the mob receives a signal |
| onSignal:
*[signal]*
| When the mob receives a specific signal |
| onShoot | When the mob fires a projectile |
| onTame | When the mob gets tamed |
| onBreed | When the mob breeds with another mob. |
| onTrade | When the Villager completes a trade. Requires Paper |
-->
| Trigger
| When it fires... |
|---------------------
---
|--------------------------------------------------------------|
| onCombat
| Default |
|
[
onAttack
](
#~onAttack
)
| When the mob hits something |
| onDamaged
| When the mob is damaged |
| onSpawn
| When the mob spawns |
| onDespawn
| When the mob is despawned |
| onFirstSpawn
| Triggered the first time a mob is spawned from a spawner |
| onLoad
| When the mob is loaded (spawning or loading after a restart) |
| onDeath
| When the mob dies |
| onTimer:
*#*
| Every
\#
ticks (where
\#
is the interval in ticks) |
| onInteract
| When the mob is right-clicked |
| onKill
| When something kills a mob |
| onKillPlayer
| When the mob kills a player |
| onPlayerDeath
| When a player dies for any reason |
| onEnterCombat
| When the mob enters combat (requires threat tables be on) |
| onDropCombat
| When the mob leaves combat (requires threat tables be on) |
| onChangeTarget
| When the mob changes targets (requires threat tables be on) |
| onExplode
| When the mob explodes (typically only used for creepers) |
| onPrime
| When the creeper charges up for an explosion |
| onTeleport
| When the mob teleports (typically only used for endermen) |
| onSignal
| When the mob receives a signal |
| onSignal:
*[signal]*
| When the mob receives a specific signal |
| onShoot
| When the mob fires a projectile |
| onTame
| When the mob gets tamed |
| onBreed
| When the mob breeds with another mob. |
| onTrade
| When the Villager completes a trade. Requires Paper |
Using Triggers
--------------
...
...
...
...