Is it possible to have a different sound effect play each time a sound triggers?

Started by Rammiloh on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to have a different sound effect play each time a sound triggers?

Full disclosure, this would be my first foray into Minecraft modding. I want to make a mod or resource pack where upon a sound triggering (like a Villager making a grunt), the sound effect that plays is randomly picked from a group of sound effects that I've provided with the mod. I've looked into replacing sound effects already, but I can only find resources for replacing existing sounds like "idle2.ogg" with a single replacement instead of several random possibilities. Does anyone have any idea of how I could accomplish this, if it's even possible at all?

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess it was added in 2020…
Tue, 10/27/2020 - 16:22

I guess it was added in 2020.5.