#minecraft not reading custom sounds in resource pack
1 messages · Page 1 of 1 (latest)
take a look at how my sound.json is built in my resourcepack https://github.com/TheBlackSwitch/Ancient-Artifacts-2/blob/1.21.6-26.1.2-release/src/resourcepack/assets/ancient_artifacts/sounds.json
doesn't really explain much to me
like am i supposed to write it differently? idk what to do
resourcepack/assets/minecraft/sounds
and in sounds there's the folder brickworks and in there are folders one and two
not inside sounds
what about this json file?
the file should be in <namespace> or minecraft in ur situation
not inside minecraft/sounds
then it should work fine
{
"brickworks.two": {
"sounds": [
{
"name": "brickworks/two/aftermath",
"stream": true
},
{
"name": "brickworks/two/deepnoise",
"stream": true
},
{
"name": "brickworks/two/verylownote",
"stream": true
}
]
}
}```
this should be correct
there shouldn't be any "category" inside the file
ah
i saw categories in the json of the base mc texture pack
so i thought i needed it
1.21.4
might have made the mistake of using the wrong versions json files again
let me see if it works
rq
nope
oh wait
the sound itself plays i think but i cant playsound it
hold on
nope, nothing happens
{
"brickworks.one": {
"sounds": [
{
"name": "brickworks/one/bluefeather",
"stream": true
},
{
"name": "brickworks/one/calmant",
"stream": true
},
{
"name": "brickworks/one/onthepassageoftime",
"stream": true
}
]
},
"brickworks.two": {
"sounds": [
{
"name": "brickworks/two/aftermath",
"stream": true
},
{
"name": "brickworks/two/deepnoise",
"stream": true
},
{
"name": "brickworks/two/verylownote",
"stream": true
}
]
}
}```
this is how it looks like right now
im stumped
Are you sure it loaded?
If the function didn't work it probably didn't load properly
should tell you what's wrong
ok im just stupid
i put the zip file in a "resourcepacks" folder i made in the save file
instead of putting it in as resources.zip
now i have an issue of the resource pack not loading in
you need to add your namespace to the sound refrences
otherwise the game won't find them
it's in the minecraft folder so i thought i don't need to
unless i have to label them as "minecraft:brickworks.one"
what does this even mean
the mcmeta doesnt matter as long as it allows it to load right?
What exactly do you mean with "doesn't matter"?
.
I'll send the file in a min
oh wait
the mcmeta
wait i think i see the issue now
ok it works now
there was an extra comma in the mcmeta file
amazing
thank you everyone
bruh
nevermind
the music for some reason doesnt feel like playing
even with playsound i dont hear anything

yeah
Like you can use one from a different datapack as a substitute right
I would suggest changing the description, but yes.
i genuinely dont know
huh
what kind of sound file is the sound ur trying to play
kindly send the file here
if you don't know
Mono: Only one sound track for both left and right speaker
Stereo: Different sound tracks for left and right speaker
Minecraft only supports mono sounds (in this context)
ah
might be stereo
yeah its stereo
still doesnt work even after i converted it to mono
weird
have you tried to get rid of all the metadata attached to the sound file? I had this one time where when I reencoded the file and removed everything but the sound channel it worked.
there shouldn't be any metadata
i changed it to mono through audacity so things like title and artist shouldn't exist anymore
yk what i feel like it would be easier for everyone to help me if i just
send the file
Your bug is very simple.
for custom sounds you need to use your own namespace when referencing them. (and you had a typo on the third file name)
sounds.json
{
"music.one": {
"sounds": [
{
"name": "brickworks:music/one/bluefeather",
"volume": 1,
"weight": 1,
"stream": true
},
{
"name": "brickworks:music/one/calmant",
"volume": 1,
"weight": 1,
"stream": true
},
{
"name": "brickworks:music/one/onthepassingoftime",
"volume": 1,
"weight": 1,
"stream": true
}
]
},
"music.two": {
"sounds": [
{
"name": "brickworks:music/two/aftermath",
"volume": 1,
"weight": 1,
"stream": true
},
{
"name": "brickworks:music/two/deepnoise",
"volume": 1,
"weight": 1,
"stream": true
},
{
"name": "brickworks:music/two/verylownote",
"volume": 1,
"weight": 1,
"stream": true
}
]
}
}
volume and weight is optional but I just like to include them.
ohh
alright