Play a certain sound from a /playsound value

If I run this command:

/playsound ambient.cave master @a ~ ~ ~ 1

It plays a cave sound, but when I run it again, it plays a different cave sound.

On the wiki, it says there are 18 different cave sounds for that one command, so I've tried to do something like this:

/playsound ambient.cave1 master @a ~ ~ ~ 1

But nothing plays.

Is there a way to play a certain cave sound (or any sound value with multiple sounds) every time?

4 Answers

According to most sources I could find on the internet, you can not play a specific variation of the sound every time. The sound variation is randomly chosen by the client when the command is executed.

2

You can, you just have to add a little more to a resource pack. All you have to do is add to your sounds.json

"rw.music.nss":{"sounds":[{"name":"**music/game/nether/nether1**","stream":true}],"category":"master"}

You can have the first text whatever, it is what you use to call the sound.

Now you must find the sound/music you want to play, and describe where it is located in the bolded area.

As @IronAnvil stated, you cant play one of the x sounds defined for cave; it is designated randomly. What you may do is duplicate it in a ressource pack and playing it.

you can try the same as getting different wool colors or different mobs spawns.

it should be something like:

/playsound ambient.cave master @a ~ ~ ~ 1:1

Or

/playsound ambient.cave master @a ~ ~ ~ 1 1

I haven't tried it... I hope it works.

3

You Might Also Like