mojira.dev
MC-115810

Custom resourcepack added sounds not playing

The bug

Since 17w15a custom resource pack sounds (not just changing vanilla sounds, the ones you have added and included in the sounds.json file) do not play a sound when /playsound(ed). This used to work fine in previous versions.

How to reproduce

  1. Download the attached resource pack

[media]
  1. and load it

  2. Use the following command to try playing a custom sound

    /playsound sound-bug master @a

    → The sound is not played; additionally an error message appears in the log indicating that the sound could not be played

Note: The provided resource pack modifies the nether quartz ore texture as well, therefore you can check if the resource pack was loaded correctly by looking at a nether quartz ore block.

Attachments

Comments 10

I think this should help:

/playsound <sound> <source> @a ~ ~ ~ 100 1

Can you please attach a resource pack which can be used to easily reproduce the bug?

I have done so. I replaced the quartz ore texture with a darker iron block if you want to know if the pack has loaded. To play the sound use "/playsound sound-bug master @a". I tested it and the sound played in 17w14a, but not 17w15a.

@Denis, I tested the command with those extra parameters and it still did not work.

The same for me. Confirmed

It seems like the "resources.zip" which you can add into the world saves without having to use a resource pack are not working either. I attached my file to enable checking. It should have like multiple different songs. It used to work so I know that it is not working in the latest build.

The output log also outputs

[23:56:58] [Client thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_111]
	at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_111]
	at h.a(SourceFile:47) [17w16b.jar:?]
	at bgz.ax(SourceFile:956) [17w16b.jar:?]
	at bgz.a(SourceFile:404) [17w16b.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:123) [17w16b.jar:?]
Caused by: java.lang.NullPointerException
	at cfk.a(SourceFile:34) ~[17w16b.jar:?]
	at cgi.c(SourceFile:305) ~[17w16b.jar:?]
	at cgk.a(SourceFile:195) ~[17w16b.jar:?]
	at bra.a(SourceFile:1387) ~[17w16b.jar:?]
	at ie.a(SourceFile:90) ~[17w16b.jar:?]
	at ie.a(SourceFile:10) ~[17w16b.jar:?]
	at hd$1.run(SourceFile:13) ~[17w16b.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_111]
	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_111]
	at h.a(SourceFile:46) ~[17w16b.jar:?]
	... 3 more

It still outputs "played sound ..." for me even though it clearly does not play it.

Confirmed still in version 17w17a.

Same here. Confirmed for 17w17b

This is back, confirmed with 1.18.2

@@unknown, this report has been resolved for a long time already. Please search for existing reports, and in case you don't find any create a new report with detailed reproduction steps.

TheAfroOfDoom

Erik Broes

Confirmed

resource-pack, sounds

Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b

Minecraft 17w18a

Retrieved