Skip to main content
items/sounds/sounds.yml
The sound’s id is lodeitems:victory, the same as any other id. Play it from actions ([sound] lodeitems:victory), from block and prop sounds:, or with /playsound. Sounds must be Ogg Vorbis (.ogg) files. For sounds that come from a spot in the world, use mono files, because stereo sounds are heard at the same volume everywhere.

Several variations

Music discs

Add disc: to make the sound a song that jukeboxes can play:
Then make a disc item that plays it:
Minecraft only accepts new music disc songs at startup. Adding or removing a song needs a server restart. A reload tells you when that’s the case. Changing the sound file itself only needs a reload.