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 145
    • Issues 145
    • 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 onSpawnOrLoad trigger authored Aug 08, 2024 by Lxlp's avatar Lxlp
Hide 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 @ 723c47c7
...@@ -26,7 +26,8 @@ Links to triggers added by addon plugins. Any triggers from these links will not ...@@ -26,7 +26,8 @@ Links to triggers added by addon plugins. Any triggers from these links will not
| [onSpawn](#onspawn) | When the mob spawns | | [onSpawn](#onspawn) | When the mob spawns |
| [onDespawn](#ondespawn) | When the mob is despawned | | [onDespawn](#ondespawn) | When the mob is despawned |
| [onReady / onFirstSpawn](#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 after a server restart | | [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 | | [onDeath](#ondeath) | When the mob dies |
| [onTimer:*#*](#ontimerticks) | Every \# ticks (where \# is the interval in ticks) | | [onTimer:*#*](#ontimerticks) | Every \# ticks (where \# is the interval in ticks) |
| [onInteract](#oninteract) | When the mob is right-clicked | | [onInteract](#oninteract) | When the mob is right-clicked |
...@@ -438,6 +439,18 @@ EXAMPLE_MOB: ...@@ -438,6 +439,18 @@ EXAMPLE_MOB:
- message{m=LOADED} @World ~onLoad - message{m=LOADED} @World ~onLoad
``` ```
#### ~onSpawnOrLoad
Executes the skill when either [~onSpawn](#onspawn) or [~onLoad](#onload) would trigger.
```yml
EXAMPLE_MOB:
Type: VILLAGER
Skills:
# sends a message to all the players in the world
# when the mob spawns or when the mob is loaded after a server restart
- message{m=SPAWNED! Or was i loaded?} @World ~onSpawnOrLoad
```
#### ~onChangeWorld #### ~onChangeWorld
Executes the skill when the mob changes world. Executes the skill when the mob changes world.
```yaml ```yaml
......
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
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • Particles Types
  • Audience
  • Equipment Slots
  • Intratick Scheduling
Other
  • Pins