Onhear

Description

Executes the skill when the mob hears a sound, if this feature has been enabled.
The <skill.var.volume> placeholder can be used in the triggered skill to return a float value between 1 and 15 representing the distance from the sound source

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>

Examples

ICanHearYou:
  Type: ZOMBIE
  Hearing:
    Enabled: true
  Skills:
  - message{m="I can hear you <trigger.name>! <skill.var.volume>? Way too loud!"} @trigger ~onHear

Aliases

  • onVibration
Updated Aug 19, 2026