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
Download the attached resource pack
and load it
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 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.
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.
I think this should help: