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 161
    • Issues 161
    • 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 information regarding generated variables authored Feb 25, 2024 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 15 additions and 1 deletion
+15 -1
  • Skills/Triggers.md Skills/Triggers.md +15 -1
  • No files found.
Skills/Triggers.md
View page @ 24c7e0d4
......@@ -159,6 +159,12 @@ EXAMPLE_MOB:
#### ~onDamaged
Executes the skill when the mob takes damage.
> The associated [@trigger] is the entity that dealt the damage
| [Implemented Placeholders] |
|--------------------------------|
| `<skill.var.damage-amount>` |
| `<skill.var.damage-type>` |
```yml
EXAMPLE_MOB:
Type: CHICKEN
......@@ -467,9 +473,16 @@ ExampleMob:
#### ~onHear
Executes the skill when the mob hears a sound, [if this feature has been enabled](Mobs/Mobs#hearing).
The `<skill.var.volume>`[placeholder](Skills/Placeholders#variable-placeholders) can be used in the triggered skill to return a float value between 1 and 15 representing the intensity of the sound (1=quiet footstep, 15=explosion).
> The associated [@trigger] is the entity that generated the sound
> The associated [@origin] is the location where the sound was generated
| [Implemented Placeholders] |
|--------------------------------|
| `<skill.var.volume>` |
| `<skill.var.sound-type>` |
```yaml
ICanHearYou:
Type: ZOMBIE
......@@ -484,3 +497,4 @@ ICanHearYou:
[ThreatTables]: Mobs/ThreatTables
[@trigger]: Skills/Targeters/Trigger
[@origin]: Skills/Targeters/Origin
[Implemented Placeholders]: Skills/Placeholders#variable-placeholders
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
  • Pins
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
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
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
Examples
Useful Tips