{{Update}}{{exclusive|java}}
This tutorial will help you locate and extract the '''sound directory''', where the [[sound]]s and [[music]] for {{el|je}} are stored.
== Sound directory (after 1.7.2) ==
The sound file for versions after 1.7.2 is located in the indexes directory:
1.8 macOS: ~/Library/Application Support/minecraft/assets/indexes/1.8.json
1.11 macOS: ~/Library/Application Support/minecraft/assets/indexes/1.11.json
The sound files in version [[Java Edition 1.7.2|1.7.2]] (specifically [[13w42a]]) and above are scattered and hashed into different folders, which are located in:
* Windows: %AppData%\.minecraft\assets\objects
* macOS: ~/Library/Application Support/minecraft/assets/objects
* Linux: ~/.minecraft/assets/objects
=== Locating specific sound files ===
Find the folder ''indexes'', which is found under the same ''assets'' folder as ''objects'', where the sound files are indexed and logged in the [[sounds.json]] file. Select the version you want and open the sounds.json file with a program that supports it, such as Notepad. Programs such as Notepad++ are recommended to help make the file more readable. Once opened, you may find something that looks like this:
"sounds/music/menu/menu1.ogg": { "hash": "c157c56846f0e50620f808fecd9d069423dd6c41", "size": 1744657 },From this, we can determine that
menu1.ogg
is hashed (or labeled) as c157c56846f0e50620f808fecd9d069423dd6c41
. Perform a search in the directory ''objects'' under ''assets'' and you should find a file with the same exact string; this is the file "menu1.ogg", one of the pieces of music that plays on the menu screen. The first two letters of the file name ("c1") will match the folder that the file is in as well; knowing this can help locate specific files faster.
After locating the file, you can test it to make sure it is the right one by playing it with a media player that is able to play .ogg sound files. If the media player you have cannot play the file, try renaming it with ".ogg" at the end. If this fails too, then it either means the media player you use does not have a proper .ogg extension to play the sound, or the file you found is not a sound file.
''Note:'' If you accidentally edit or remove the file from the original directory, the launcher will automatically re-download it again the next time you launch the game. (You must be connected to the Internet when you launch the game. If not, then the sound directory will not be reset and could potentially lead to errors.)
== Extracting ''Minecraft'' sounds using Node.js ==
%AppData%\.minecraft\assets
or %AppData%\.minecraft\assets\virtual\legacy
* macOS: ~/Library/Application Support/minecraft/assets
* Linux: ~/.minecraft/assets
If you have played both the old and new versions, then ''both'' the old and new directories will exist in the game files. The old directory is only used for pre-1.7 versions.
=== Legacy sub-folders ===
In .minecraft\assets\virtual\legacy\sounds
, there are 13 sub folders:
* ambient
: Ambiance and rain/thunder
* damage
: Sounds of the player taking damage
* dig
: Breaking blocks
* fire
: Fire sounds
* firework
: Fireworks sound effects
* liquids
: Sounds made by liquids such as water and lava
* minecart
: Sounds created by moving minecarts
* mob
: Mob sounds
* music
: Background music by C418
* random
: Various sound effects from eating to explosions
* records
: Music on the record discs found
* step
: Footsteps
* tile
: Pistons
== Warning ==
If you edit, add, or remove sounds directly in the sound directory, executing the [[launcher]] and then launching ''Minecraft'' while connected to the Internet will automatically ''re-download and revert any changes'' you've made to the sound directory, deleting your work. This applies for both the new and old sound directories. Disconnecting from the Internet before launching the game will not revert the files, but this is not recommended. The best method to safely store custom sounds is to [[Tutorials/Creating a resource pack|create your own resource pack]].
== Video tutorials ==
'''''[https://www.youtube.com/watch?v=St9cE_fH5ng Minecraft Tutorial: Locate the Minecraft Sound Directory and Convert Audio Files]''' (Old sound directory only)''
{{yt|St9cE_fH5ng}}
== See also ==
* [[Sounds.json]]
== Navigation ==
{{Navbox tutorials|technical}}
[[de:Standard-Ressourcen]]
[[fr:Tutoriels/Répertoire des sons]]
[[ko:튜토리얼/마인크래프트 사운드 디렉토리]]
[[pt:Comunidade:Tutoriais/Como encontrar o diretório de sons no Minecraft]]
[[zh:Tutorial:制作资源包/音效和音乐]]