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 146
    • Issues 146
    • 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
Added ~onFirstSpawn syntax to ~onReady and Added ~onPlayerDeath (triggered from any death cause) authored Jul 06, 2023 by Dante's avatar Dante
Show whitespace changes
Inline Side-by-side
Showing with 14 additions and 1 deletion
+14 -1
  • Skills/Triggers.md Skills/Triggers.md +14 -1
  • No files found.
Skills/Triggers.md
View page @ 5d9658c7
......@@ -14,11 +14,12 @@ itself.
| [onDamaged](#ondamaged) | When the mob is damaged |
| [onSpawn](#onspawn) | When the mob spawns |
| [onDespawn](#ondespawn) | When the mob is despawned |
| [onReady](#onready) | Triggered the first time a mob is spawned from a spawner |
| [onReady / onFirstSpawn](#onready) | Triggered the first time a mob is spawned from a spawner |
| [onLoad](#onload) | When the mob is loaded (spawning or loading after a restart) |
| [onDeath](#ondeath) | When the mob dies |
| [onTimer:*#*](#ontimerticks) | Every \# ticks (where \# is the interval in ticks) |
| [onInteract](#oninteract) | When the mob is right-clicked |
| [onPlayerDeath](#onplayerdeath) | When a player dies for any reason |
| [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) |
......@@ -208,6 +209,17 @@ EXAMPLE_MOB:
- message{m=TIMER every 40 ticks (2 seconds)} @World ~onTimer:40
```
#### ~onPlayerDeath
Executes the skill when the mob kills a player.
```yml
EXAMPLE_MOB:
Type: CHICKEN
Skills:
# sends a message to all the players in the world
# when a player dies for any reason.
- message{m=A PLAYER DIED SOMEWHERE} @World ~onPlayerDeath
```
#### ~onPlayerKill
Executes the skill when the mob kills a player.
```yml
......@@ -378,6 +390,7 @@ EXAMPLE_MOB:
# sends a message to all the players in the world
# when the mob is about to spawn from a spawner
- message{m=READY TO SPAWN FROM A SPAWNER} @World ~onReady
- message{m=READY TO SPAWN FROM A SPAWNER} @World ~onFirstSpawn
```
#### ~onLoad
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples