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

Started by Rammiloh on Tue, 10/13/2020 - 04:26

Topic category: Help with modding (Java Edition)

Last seen on 02:21, 14. Oct 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it possible to have a different sound effect play each time a sound triggers?
Tue, 10/13/2020 - 04:26

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?

Last seen on 11:11, 30. Oct 2020
Joined Sep 2020
User points:

User statistics:

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

I guess it was added in 2020.5.