mojira.dev
MC-36348

sounds in resource packs no longer overwrite the originals.

While altering my resource pack in an attempt to reinstate the alter sound effects I had from previous versions, none of the old sounds are being overridden anymore. using "replace": true has seeming no effect and attempting to alter the weight of the original files also seems to have little effect the best that has come of it is adding my files to the original sounds. was tested on a command block using playsound random.bowhit @p. my new sound would randomly pop up but with there being more old sounds than my one new, more often than not it was effectively unchanged. and this being after I had set the weight of bowhit1, bowhit2, and bowhit3 to 0 and my new sound to 100.

Linked issues

Attachments

Comments 61

did you rename the folder. The new snapshot changes the name from sound to sounds

folder structure looks something like this
SMWResource Pack/
-assets/
--minecraft/
---sounds.json
---sounds/
----random/
-----MagicHit
MagicHit being the new sound file being used to replace the bowhit set

@Th3F4114n0n3:
Ahhh ... that's why I can't hear the sounds of my resource pack too 🙂
I missed that "Mojang renamed the sounds folder" trouble somehow ... yep, it works fine after renaming the folder, LOL

51 more comments

Sorry for the delay Life was interrupting
I finally got using the same names to overwrite the originals, but it still leaves me with the issue of things like the sound for when a players dies and when a player gets hit coming from the same file, so when I want a sound unique to a player dying that doesn't play every time someone gets hit. I can't override the default with a new file. Which was a large portion of what made me post this in the first place. Not to mention with my time of day music for example, I have 8 files I want to use whereas the default is 12 files. So to overwrite the originals, 4 of them have to be duplicates. Effectively setting the weight of those 2 songs to 2 while all others are 1. This isn't a good thing when I want all songs to play pretty much evenly across the board and editing the sounds.json file doesn't let us affect the default settings in any way and just add new setting to them.

this remains an issue unless this is something that is meant to work this way can someone either re-open or mark works as intended whichever the case may be

Edit: at worst it may need a slightly more accurate name along the lines of. New sounds.json does not offer the customization that the patch notes said it was meant to.

This might be a different case of the same problem (at least in summary)... but, I've replaced the wolf sounds with renamed sound files (in a resource pack), yet the original sounds are still the only ones playing. Minecraft 1.7.2, Windows 7 64 bit.

In other words, I put different sound files in, deleted the originals, and renamed the sounds the exact same as the originals. bark1.ogg, bark2.ogg, etc.. Yet when I go into the game, it only plays the ORIGINAL sound effects, the ones I deleted.

My resource pack is highest on the list (with Default second). Everything else is replaced properly (textures, title screen text, etc). But not the sounds. (I even renamed the folder "sounds" from "sound", tried different directory structures, everything I could think of. Am I missing something?

I had previously overwritten audio files with my resource pack just fine. So could it be a problem with the launcher and what it does with the files in terms of overwriting vs leaving alone?

I think I know part of the problem, with the .lang you can add new entries, and if you have multiple, the final is chosen, but with the sounds.json, each sound is programmed to include multiple sounds if told, so adding an entry to sounds.json instead of rewriting the sound file data just adds to it, causing the default to be used plus your replacement file name.
I hope this makes sense and helps with fixing this bug, as that would shrink the size of my resource pack much.

When I was editing my resource pack, I tried to change the random.bow sound to a gunshot, but it's not working, I know my files are correct as I have changed some music on disks. Thanks in advance.

Steven Valenski

Erik Broes

Unconfirmed

resource-pack, sounds

Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w48b

Retrieved