Started by
Hijitori
on
Topic category: Help with Minecraft modding (Java Edition)
I have 3 sound files in resources:
- mod.sound.running_z_say1
- mod.sound.running_z_say2
- mod.sound.running_z_say3
How can I make mob play randomly 1 of these 3 sounds like vanilla mobs do? (like zombie with "entity.zombie.hurt" = hurt1, hurt2, hurt3 or hurt4).
Are procedures necessary here?
Yeah procedures would be necessary. In the mob element, set the step sound to blank. Then in the triggers section, create a new procedure for 'on entity tick update.' Check if the mob is moving, then set up a randomiser to play either one of the three sounds. Hope this helped :)
That's for if your sounds are step sounds, which I assumed they were due to 'running' in the name. If it's for anything else, you could change the depedencies required to call the procedure
Hell I hoped it got changed through the year, alright, thanks JJ for help.
https://mcreator.net/tracker/issue/63811