Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 143
    • Issues 143
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
  • Triggers

Triggers · Changes

Page history
updated trigger links authored Oct 25, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 36 additions and 33 deletions
+36 -33
  • Skills/Triggers.md Skills/Triggers.md +36 -33
  • No files found.
Skills/Triggers.md
View page @ 839f83d3
......@@ -18,37 +18,37 @@ 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) |
| Trigger | When it fires... |
|----------------------------------------|---------------------------------------------------------------|
| [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
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs
Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques