#minecraft not reading custom sounds in resource pack

1 messages · Page 1 of 1 (latest)

serene tartan
#

i made a resource pack to add custom music to my map. when i open up the world with the resource pack zip in the "resourcepacks" folder of the world folder the sound doesnt show up in /playsound. what am i doing wrong? heres the json:

serene tartan
versed etherBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

amber sparrow
serene tartan
#

like am i supposed to write it differently? idk what to do

dire gust
#

?

serene tartan
dire gust
#

.

#

that explains why

#

you need to put it in minecraft

#

or <namespace>

serene tartan
#

and in sounds there's the folder brickworks and in there are folders one and two

dire gust
#

not inside sounds

serene tartan
#

no wait

#

the sounds is in minecraft actually

#

mb

dire gust
#

the file should be in <namespace> or minecraft in ur situation

#

not inside minecraft/sounds

serene tartan
#

it's in minecraft

dire gust
#

then it should work fine

dire gust
#
{
  "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

serene tartan
#

i saw categories in the json of the base mc texture pack

#

so i thought i needed it

dire gust
#

what version

#

are you using

serene tartan
#

might have made the mistake of using the wrong versions json files again

dire gust
#

should work

#

you can resolve this now

serene tartan
#

let me see if it works

#

rq

#

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

empty mango
#

Are you sure it loaded?

#

If the function didn't work it probably didn't load properly

serene tartan
#

how do i make sure it loads?

dire gust
#

reload textures

#

or check logs

scarlet hornetBOT
dire gust
#

should tell you what's wrong

serene tartan
#

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

scarlet hornetBOT
amber sparrow
#

otherwise the game won't find them

serene tartan
#

unless i have to label them as "minecraft:brickworks.one"

serene tartan
#

what does this even mean

amber sparrow
#

ooh there is a mistake in your pack mcmeta

#

can you show that file?

empty mango
#

the mcmeta doesnt matter as long as it allows it to load right?

mortal vessel
dire gust
#

😭

#

send the file

serene tartan
#

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

versed etherBOT
serene tartan
#

thank you everyone

versed etherBOT
serene tartan
#

bruh

versed etherBOT
versed etherBOT
serene tartan
#

nevermind

versed etherBOT
serene tartan
#

the music for some reason doesnt feel like playing

#

even with playsound i dont hear anything

dire gust
serene tartan
dire gust
#

what's the problem dude

#

is the sound file an ogg file that is made to be mono?

empty mango
mortal vessel
serene tartan
dire gust
#

kindly send the file here

#

if you don't know

mortal vessel
#

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)

serene tartan
#

ah

#

might be stereo

#

yeah its stereo

#

still doesnt work even after i converted it to mono

#

weird

vale kayak
#

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.

serene tartan
#

i changed it to mono through audacity so things like title and artist shouldn't exist anymore

serene tartan
#

yk what i feel like it would be easier for everyone to help me if i just

#

send the file

vale kayak
#

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.

serene tartan
#

alright

serene tartan
#

ok so the sounds work now

#

thank you

#

now i need to figure out why it wont play in my datapack