#minecraft can't see / hear custom sounds

71 messages · Page 1 of 1 (latest)

short estuary
#

Hello does anyone know why i cna't see my custom sounds and hear them?

solemn bay
#
  1. I do heavily recommend you to use a custom namespace,
    because with such naming you're likely to run into issues with other resourcepacks.
  2. I assume your sound is an .ogg file?
    And 3. in which folder is your sound file?
short estuary
#

sound is indeed a .ogg file

#

and sound folder is in custom file

solemn bay
#

A namespace is basically the name of the folder all your other folders are in:
assets/minecraft/sounds/... -> the namespace is minecraft
assets/<namespace>/sounds/
This exists so resourcepacks don't overwrite each other by accident, you just have to pick a unique enough name.
("custom" is not even remotely unique enough to not run into any issues)
But you'd have to specify namespaces in model files, blockstate files and sound.json if you use them,
which might be to much work seeing as you already have quite a bit of stuff.

#

Anyways, the sound seems correct. No clue why it's not working.
I assume you tried to play it using the /playsound command? Or using some plugin or similar?

short estuary
solemn bay
#

Hm... .ogg is just a container format*, it might be that the codec of the sound is one that MC does not support.
It would be the first time I run across that, but in theory it might be the case.

(* container format = basically a chest that can store different types of data)

floral skiff
short estuary
#

/playsound

floral skiff
#

exact command

#

the full command, not just the command type

short estuary
floral skiff
#

sounds never show up in the playsound command

#

(at least not custom ones)

solemn bay
#

They don't? Thanks for the new mod Idea 👀

short estuary
#

i see

#

is there a way to still hear them with a command?

#

because i'm planning to add them to magicspells / denizen

floral skiff
#

you can still use them
it will just never auto suggest them

#

basically, the "server" doesn't know what sound events exist, so no matter what you type the "server" will always tell the "client" (yes, even in singleplayer) to run the sound event (even if nothing is registered for that player, in which case nothing happens)

short estuary
#

so if i did /playsound custom.effect1

#

i would hear the sound

solemn bay
#

In theory yes. Have you ever actually run the command?

short estuary
#

i just tried it, but didnt here anything

solemn bay
#

Or did you just assume it doesn't work because it displayed as red?

floral skiff
#

Btw. how did you make the .ogg file? (Did you use a program or did you just rename a .mp3 or similar to .ogg?)

short estuary
#

i used a mp3 to .ogg converter

#

via a site

floral skiff
#

.ogg Vorbis?

short estuary
#

no

#

this one

#

i think

floral skiff
#

you might have to pick this option, not sure though
could you send the current .ogg file you are trying to play?

short estuary
#

sure

solemn bay
#

It uses vorbis

#

Doesn't MC use opus?

floral skiff
#

but in your sounds.json you specified it's called bigexplosion

solemn bay
#

^ and in your file screenshot from before

short estuary
#

oh mb

#

i have like 10 differnet explosion sounds

#

this is the right one

solemn bay
#

Also vorbis codec

floral skiff
solemn bay
#

Which site exactly? The sites I found have no mention of codecs.

floral skiff
#

could you send your whole sounds.json, Bureau?

short estuary
#

okay

solemn bay
#

Do all the other sounds work?

short estuary
#

none

solemn bay
#

You have tons of issues in that file

short estuary
#

is it the formatting?

solemn bay
#
  1. namespacing in an incorrect spot
#

uppercase file names are also not allowed

#

I suggest you to do one sound at a time, rather than all at once

floral skiff
#

it should mention problems like that in the client output log btw.

#

!faq output-log

sand juniperBOT
# floral skiff !faq output-log

The output log will show you errors related to resource packs in Minecraft: Java Edition. Here is how you can enable it: https://i.imgur.com/WbQZa6k.png
(PS: Optifine likes to hide vanilla errors/warnings for some weird reason, so always load the game up without it if you don't need it for your pack to work!)
If you don't understand the errors/warnings feel free to show and ask about them (in a help channel).

short estuary
#

hm so

#

there cant be any

#

capitals in the name?

solemn bay
#

Nope

floral skiff
#

!faq invalid_names

sand juniperBOT
# floral skiff !faq invalid_names

(Result for "invalid-names")
Files/Folders nor reference to them are allowed to contain capital letters nor spaces.
Valid symobls are: a-z (lowercase only!) 0-9 / . _ and -

When changing a file's/folder's name, keep in mind that you also need to update all references (texture path in models, model paths in custom_model_data predicates etc.)
Disclaimer: Optifine allows those characters but for a vanilla client the model will either be the error cube or it might even crash their game (depending on their specs).

short estuary
#

alright

#

ill change it right now