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
added onHear trigger authored Feb 25, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 18 additions and 1 deletion
+18 -1
  • Skills/Triggers.md Skills/Triggers.md +18 -1
  • No files found.
Skills/Triggers.md
View page @ 7b7623e8
......@@ -44,6 +44,7 @@ Links to triggers added by addon plugins. Any triggers from these links will not
| [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) |
<!--
ADD THIS TRIGGER BACK WHEN IT WORKS
......@@ -463,7 +464,23 @@ ExampleMob:
- message{m="Get damaged! MUHAHAHA"} @trigger ~onSkillDamage
```
#### ~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
```yaml
ICanHearYou:
Type: ZOMBIE
Hearing:
Enabled: true
Skills:
- message{m="I can hear you <trigger.name>! <skill.var.volume>? Way too loud!"} @trigger
```
<!-- LINKS -->
[ThreatTables]: Mobs/ThreatTables
[@trigger]: Skills/Targeters/Trigger
\ No newline at end of file
[@trigger]: Skills/Targeters/Trigger
[@origin]: Skills/Targeters/Origin
\ 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