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 144
    • Issues 144
    • 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
Update Triggers authored Oct 30, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 44 additions and 47 deletions
+44 -47
  • Skills/Triggers.md Skills/Triggers.md +44 -47
  • No files found.
Skills/Triggers.md
View page @ fdb9d403
...@@ -9,53 +9,6 @@ itself (in the mob's configuration file). ...@@ -9,53 +9,6 @@ itself (in the mob's configuration file).
> Each trigger starts with a `on` string. That string is **case sensitive**, so make sure to write it correctly or the trigger will not work > Each trigger starts with a `on` string. That string is **case sensitive**, so make sure to write it correctly or the trigger will not work
# Additional Triggers
Links to triggers added by addon plugins. Any triggers from these links will not work without that plugin installed.
- [Mythic Crucible](https://git.mythiccraft.io/mythiccraft/mythiccrucible/-/wikis/Skills/Triggers)
- [Mythic Enchantments](https://git.mythiccraft.io/mythiccraft/mythicenchants/-/wikis/Skills/Triggers)
# Triggers
**Table of all available triggers:**
| 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](/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/onTimer) | 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](/Skills/Triggers/onsignal) | 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
| onKill | When something kills a mob |
-->
## Using Triggers ## Using Triggers
Triggers are defined in the skill section of the mob configuration and Triggers are defined in the skill section of the mob configuration and
must use a tilde (~) in front of them. In the case of the Timer, a time must use a tilde (~) in front of them. In the case of the Timer, a time
...@@ -108,6 +61,50 @@ that mob has an ~onDamaged skill, it will target that player. ...@@ -108,6 +61,50 @@ 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 If a signal is being sent to a mob, it will target the mob that sent
the signal, and so on. the signal, and so on.
# Additional Triggers
Links to triggers added by addon plugins. Any triggers from these links will not work without that plugin installed.
- [Mythic Crucible](https://git.mythiccraft.io/mythiccraft/mythiccrucible/-/wikis/Skills/Triggers)
- [Mythic Enchantments](https://git.mythiccraft.io/mythiccraft/mythicenchants/-/wikis/Skills/Triggers)
# Triggers
**Table of all available triggers:**
| 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](/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/onTimer) | 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](/Skills/Triggers/onsignal) | 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) |
<!-- <!--
# All Available Triggers # All Available Triggers
#### ~onSpawn #### ~onSpawn
......
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