Tutorials/Making custom game music

This is a tutorial about changing the music in Minecraft and the same technique can be used for any other sound effect. This tutorial is for 1.8.8 but should work with 1.8 an higher, 1.9 is not yet known but assumed to be the same. This tutorial was made in windows 8 but should be the same in any windows version and mac only differs in file access.

Software
To make this project run smoothly install the following software:
 * Notepad ++
 * Audacity

If on OS X, use TextEdit.

Finding the required files
To start you will need to find the files you'll be replacing via resource pack. Open up your .minecraft folder if you have a link or other access or hit "Windows key+r" and type %appdata% into the run window, the run window can be accesed by searching "run" in the start menu.

Once you have gone to appdata open .minecraft and open assets from the list, open "indexes" and "objects"If you want to edit music instead of replacing in new windows and have your music available (like on the desktop)



Finding the music file to replace
To start, open up the JSON file for your minecraft version in indexes with notepad++ and hit "Ctrl+f" or go to "search → find" in the menu. In the search window type "music", make sure it is in lower case or "match case is off, then choose "find all in current document" A list should show up in a section at the bottom of the document windows, double click on the highlighted "music" on the file you wan't to replace. To figure out which file you want to replace, go here - Music

Inserting your music
Open a new folder on your desktop and name it whatever you want your music pack to be called. Check the directory of your music file, say "minecraft/sounds/music/menu/menu3.ogg" for which you would make the following directories- assets(always start with assets)--minecraft-sounds-music-menu. For discs/Records they are under minecraft/sounds/records You would then put your music file in the folder. You'll notice that the name is "menu3.ogg" this means you have to make your file and an ".ogg" (OGG Vorbis) file.



Re-formating your file
If your file isn't already a "WAV" or "AIFF" file you will need to make it one, a simple website for this is - Online Convert - you can go staight to OGG aswell which further shortens the process. If your file format is not supported there just search around, you should be able to find one.

If you tranfered your file to OGG thats great, if not, open your file with Audacity and export it to OGG Vorbis.

Make sure that you rename your file to the same name as the file you're replacing (in this case menu3)

Editing the default game music
If you want to change the default ingame music using a audio editer you can open indexes and find the file you want to replace, then copy the "hash" underneath and search it in "objects". Then copy the file and paste the duplicate into your sound directory. Then Rename your file to it's real (not hash) name from the index.

Now open the file in Audacity or other audio editer and Export as OGG Vorbis.

Activation
To activate your pack go to your assets folder and and make a new text document. and copy in this text into it and save the file as "pack.mcmeta", you can then delete the text file and keep "pack.mcmeta"

{ "pack": { "pack_format": 1, "description": "pack description" } }

Add an aditional 128px by 128px image called pack.png if you wan't a custom resource pack picture.

Enjoy your new in game music!