#How do I use on_damage_sound_event?

1 messages · Page 1 of 1 (latest)

mild flower
#

I need this for a mob to make a blocking sound when it gets hit

cunning ginkgo
#

you can use sounds.json to play the sound

#

just add your entities identifer in entity_sounds underneath entities

#
            "events" : {
               "ambient" : "mob.allay.idle",
               "ambient.tame" : "mob.allay.idle_holding",
               "death" : "mob.allay.death",
               "hurt" : "mob.allay.hurt"
            },
            "pitch" : [ 0.80, 1.20 ],
            "volume" : 1
         },```
#

use hurt to trigger the sounds

#
   "entity_sounds":{
      "entities":{
         "bob:whatever":{
            "events":{
               "hurt":"sound"
            }
         }
      }
   }
}``` basic structure for how to setup hurt sound