2

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?

3

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
1

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

0

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.

0

that can't be 1:1 or 1 1. the first 1 is the volume and the second 1 is the pitch, after it you can put the minimumVolume

-1

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.

2
  • the syntax is /playsound (sound) (source) (player) [x] [y] [z] [volume] [pitch] [minimumvolume] so the second one would be pitch. good idea tho – Diriector_Doc Jul 30 '17 at 22:15
  • 1
    @Tomenos Mauserrio The person who asked the question is correcting your answer. Pointing out why it won't work. Please don't post answers that you are unsure if they work. You posted a guess. – IronAnvil Jul 31 '17 at 1:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.