206 lines
9.5 KiB
Text
206 lines
9.5 KiB
Text
{{For|the Bedrock Edition directory|com.mojang}}
|
||
{{exclusive|java}}
|
||
|
||
{{File|directory|'''.minecraft'''}} (or simply {{File|directory|'''minecraft'''}} on macOS) is the directory [[Java Edition|''Minecraft: Java Edition'']] creates to run from. This directory includes the [[wikipedia:JAR (file format)|JAR]] files, sound, music, resource packs, personal options, worlds, etc.
|
||
|
||
== Locating ==
|
||
{{/path}}
|
||
|
||
Locating the {{File|directory|.minecraft|inline=1}} directory can be vital for installing a resource pack or locating any made screenshots.
|
||
|
||
The path in the table above is just the default case. Launchers can place {{File|directory|.minecraft|inline=1}} at any path.
|
||
|
||
If you're a Windows user and are unfamiliar with how to find your {{File|directory|%APPDATA%|inline=1}} directory, follow these steps:
|
||
|
||
# Click Start → Run. If you don't see "Run", press {{key|Windows + R}}.
|
||
# Type {{code|%APPDATA%\.minecraft}} and click "OK".
|
||
|
||
If you're a Mac user, you can open the directory through Spotlight:
|
||
|
||
# Open Finder and press {{key|Shift + Command + G}} or open the Spotlight popup through the magnifying glass icon on the right of the Menu Bar.
|
||
# Type {{code|~/Library/Application Support/minecraft}} and hit {{key|Enter}}.
|
||
|
||
On Linux or macOS, the {{code|~}} in the path refers to the home directory. Files starting with {{code|.}} are hidden by default. In most file managers, pressing {{key|Ctrl + H}} toggles viewing hidden files. In macOS specifically, since version 10.12 (Sierra), pressing {{key|Command + Shift + .}} toggles viewing hidden files.
|
||
|
||
If you want to change the path of the <code>.minecraft</code> directory, see [[Tutorials/Custom Minecraft directory]].
|
||
|
||
== Directory structure ==
|
||
<div class="treeview">
|
||
* {{File|directory|.minecraft}}
|
||
** {{File|directory|assets}}
|
||
*** {{File|directory|indexes}}
|
||
**** {{File|file|''version''.json}}
|
||
*** {{File|directory|log_configs}}
|
||
**** {{File|file|client-''version''.xml}}
|
||
*** {{File|directory|objects}}
|
||
*** {{File|directory|skinpacks}}
|
||
*** {{File|directory|virtual}}
|
||
** {{File|directory|bin}}
|
||
*** {{File|archive|jinput.jar}}
|
||
*** {{File|archive|lwjgl.jar}}
|
||
*** {{File|archive|lwjgl_util.jar}}
|
||
*** {{File|archive|[[minecraft.jar]]}} (it is the [[client.jar]] for 1.5.2. The game doesn't use it after the launcher update, though; it uses the "versions" directory instead.)
|
||
*** {{File|directory|natives}}
|
||
**** (native libraries)
|
||
*** {{File|directory|''random ID''}}
|
||
**** (native libraries)
|
||
** {{File|directory|[[Commands/debug|debug]]}}
|
||
*** {{File|archive|''year''-''month''-''day''_''hour''.''minute''.''second''.zip}}
|
||
**** {{File|directory|deviations}}
|
||
***** {{File|file|<tick_number>@''year''-''month''-''day''_''hour''.''minute''.''second''.txt}}
|
||
**** {{File|directory|metrics}}
|
||
***** {{File|file|eventloops.csv}}
|
||
***** {{File|file|frame_times_ms_.csv}}
|
||
***** {{File|file|jvm.csv}}
|
||
***** {{File|file|mailboxes.csv}}
|
||
***** {{File|file|rendering_chunk_dispatching.csv}}
|
||
***** {{File|file|rendering_chunk_stats.csv}}
|
||
***** {{File|file|task_total_duration_ms.csv}}
|
||
**** {{File|file|profiling.txt}}
|
||
** {{File|directory|libraries}}: Contains various libraries packaged per [[wikipedia:Apache Maven|Maven]] convention (without POM files)
|
||
** {{File|directory|logs}}
|
||
*** {{File|file|''year''-''month''-''day''-''sessionNumber''.log.gz}}
|
||
*** {{File|file|latest.log}}
|
||
** {{File|directory|[[Resource pack|resourcepacks]]}}
|
||
** {{File|directory|saves}}
|
||
*** {{File|directory|[[Java Edition level format|''worldName'']]}}
|
||
**** {{File|directory|advancements}}
|
||
***** {{File|file|''uuid''.json}}
|
||
**** {{File|directory|data}}
|
||
***** {{File|file|[[Commands/forceload|chunks.dat]]}}
|
||
***** {{File|file|[[Command_storage_format|command_storage_''namespace''.dat]]}}
|
||
***** {{File|file|[[idcounts.dat]]}}
|
||
***** {{File|file|[[Map_item_format#map_<#>.dat_format|map_''id''.dat]]}}
|
||
***** {{File|file|[[raids.dat]]}}
|
||
***** {{File|file|[[Commands/random|random_sequences.dat]]}}
|
||
***** {{File|file|[[scoreboard.dat]]}}
|
||
**** {{File|directory|[[Data pack|datapacks]]}}
|
||
**** {{File|directory|DIM1}}
|
||
***** {{File|directory|data}}
|
||
****** {{File|file|[[raids.dat|raids_end.dat]]}}
|
||
***** {{File|directory|{{Tooltip|poi|Villager identified beds, job sites, and bells}}}}
|
||
****** {{File|file|[[Java_Edition_level_format#poi_format|r.''x''.''z''.mca]]}}
|
||
***** {{File|directory|region}}
|
||
****** {{File|file|[[Chunk format|r.''x''.''z''.mca]]}}
|
||
**** {{File|directory|DIM-1}}
|
||
***** {{File|directory|data}}
|
||
****** {{File|file|[[raids.dat|raids_nether.dat]]}}
|
||
***** {{File|directory|{{Tooltip|poi|Villager identified beds, job sites, and bells}}}}
|
||
****** {{File|file|[[Java_Edition_level_format#poi_format|r.''x''.''z''.mca]]}}
|
||
***** {{File|directory|region}}
|
||
****** {{File|file|[[Chunk format|r.''x''.''z''.mca]]}}
|
||
**** {{File|directory|generated}}
|
||
***** {{File|directory|''namespace''}}
|
||
****** {{File|directory|structures}}
|
||
******* {{File|file|[[Structure file|''name''.nbt]]}}
|
||
**** {{File|directory|playerdata}}
|
||
***** {{File|file|[[Player.dat format|''uuid''.dat]]}}
|
||
**** {{File|directory|{{Tooltip|poi|Villager identified beds, job sites, and bells}}}}
|
||
***** {{File|file|[[Java_Edition_level_format#poi_format|r.''x''.''z''.mca]]}}
|
||
**** {{File|directory|region}}
|
||
***** {{File|file|[[Chunk format|r.''x''.''z''.mca]]}}
|
||
**** {{File|directory|stats}}
|
||
***** {{File|file|''uuid''.json}}
|
||
**** {{File|file|icon.png}}
|
||
**** {{File|file|[[Java Edition level format#level.dat format|level.dat]]}}
|
||
**** {{File|file|level.dat_mcr}}
|
||
**** {{File|file|level.dat_old}}
|
||
**** {{File|archive|resources.zip}}
|
||
**** {{File|file|[[session.lock]]}}
|
||
** {{File|directory|[[screenshots]]}}
|
||
*** {{File|file|''year''-''month''-''day''_''hour''.''minute''.''second''.png}} (or, ...{{code|''second''_''instance''.png}})
|
||
** {{File|directory|stats}}
|
||
*** {{File|file|stats_''player''_unsent.dat}}
|
||
*** {{File|file|stats_''player''_unsent.old}}
|
||
** {{File|directory|[[Texture pack|texturepacks]]}}
|
||
** {{File|directory|texturepacks-mp-cache}}
|
||
** {{File|directory|versions}}
|
||
*** {{File|directory|''version''}}
|
||
**** {{File|archive|[[client.jar|''version''.jar]]}}
|
||
**** {{File|file|[[client.json|''version''.json]]}}
|
||
** {{File|directory|webcache}}
|
||
*** {{File|directory|Cache}}
|
||
**** {{File|file|data_0}}
|
||
**** {{File|file|data_1}}
|
||
**** {{File|file|data_2}}
|
||
**** {{File|file|data_3}}
|
||
**** {{File|file|f_<hexa>}}
|
||
*** {{File|file|Cookies}}
|
||
*** {{File|file|Cookies-journal}}
|
||
*** {{File|directory|GPUCache}}
|
||
**** {{File|file|data_0}}
|
||
**** {{File|file|data_1}}
|
||
**** {{File|file|data_2}}
|
||
**** {{File|file|data_3}}
|
||
**** {{File|file|index}}
|
||
*** {{File|directory|Visited Links}}
|
||
** {{File|file|[[command_history.txt]]}}
|
||
** {{File|file|debug.stitched_items.png}}
|
||
** {{File|file|debug.stitched_terrain.png}}
|
||
** {{File|file|[[hotbar.nbt format|hotbar.nbt]]}}
|
||
** {{File|file|launcher_cef_log.txt}}
|
||
** {{File|file|launcher_entitlements.json}}
|
||
** {{File|file|launcher_gamer_pics.json}}
|
||
** {{File|file|launcher_msa_credentials.json}}
|
||
** {{File|file|[[launcher_profiles.json]]}}
|
||
** {{File|file|[[Quick Play#JSON format|launcher_quick_play.json]]}}
|
||
** {{File|file|launcher_settings.json}}
|
||
** {{File|file|launcher_skins.json}}
|
||
** {{File|file|launcher_ui_state.json}}
|
||
** {{File|file|nativelog.txt}} (macOS only)
|
||
** {{File|file|nativeUpdaterLog.txt}} (macOS only)
|
||
** {{File|file|[[options.txt]]}}
|
||
** {{File|file|output-client.log}}
|
||
** {{File|file|output-server.log}}
|
||
** {{File|file|realms_persistence.json}}
|
||
** {{File|file|[[servers.dat]]}}
|
||
** {{File|file|textures_0.png}}
|
||
** {{File|file|textures_1.png}}
|
||
** {{File|file|textures_2.png}}
|
||
** {{File|file|textures_3.png}}
|
||
** {{File|file|textures_4.png}}
|
||
** {{File|file|usercache.json}}
|
||
</div>
|
||
|
||
Use of a resource pack can be forced by renaming its ZIP file to {{cd|resources.zip}} and placing it in the root directory of the world save.<ref>[https://web.archive.org/web/20140221073128/https://www.mojang.com/2014/02/minecraft-snapshot-14w07a/ Minecraft snapshot 14w07a] – Dinnerbone on mojang.com; February 14, 2014</ref> This feature is single-player only;<ref>{{Cite bug|MC|73716|Resources.zip doesn't work for servers (and possibly LAN worlds)|date=October 27, 2014}}</ref> however, there is another way for servers to ask or force clients to use the server resource pack.
|
||
|
||
For Windows and Linux, the contents of {{File|file|nativelog.txt|inline=1}} and {{File|file|nativeUpdaterLog.txt|inline=1}} can be found within {{File|file|launcher_log.txt|inline=1}} when applicable (i.e. the contents of {{File|file|nativeUpdaterLog.txt|inline=1}} is present only in {{File|file|latest_log.txt|inline=1}} after the launcher is updated or launched for the first time).
|
||
|
||
== History ==
|
||
{{HistoryTable
|
||
|{{HistoryLine|java infdev}}
|
||
|{{HistoryLine||20100629|Added {{File|file|level.dat_old|inline=1}}}}
|
||
|{{HistoryLine|java alpha}}
|
||
|{{HistoryLine||v1.0.11|Added {{File|file|session.lock|inline=1}}}}
|
||
|{{HistoryLine|java}}
|
||
|{{HistoryLine||1.6|Removed {{File|file|lastlogin|inline=1}}}}
|
||
|{{HistoryLine||1.13|dev=17w43a|Removed structure data.
|
||
|Added datapacks directory.}}
|
||
|{{HistoryLine||1.14|dev=18w47a|Added {{File|file|raids.dat|inline=1}}}}
|
||
|{{HistoryLine|||dev=19w13a|Removed {{File|file|villages.dat|inline=1}} and added {{File|directory|poi|inline=1}} region files.}}
|
||
|{{HistoryLine||1.20.2|dev=23w31a|Added {{file|file|command_history.txt|inline=1}} to persist command history between worlds.}}
|
||
}}
|
||
|
||
== References ==
|
||
{{reflist}}
|
||
|
||
== Navigation ==
|
||
{{Navbox Java Edition technical|general}}
|
||
|
||
[[Category:Development]]
|
||
|
||
[[de:.minecraft]]
|
||
[[es:.minecraft]]
|
||
[[fr:.minecraft]]
|
||
[[it:.minecraft]]
|
||
[[ja:.minecraft]]
|
||
[[ko:.minecraft]]
|
||
[[lzh:.minecraft]]
|
||
[[nl:.minecraft]]
|
||
[[pl:.minecraft]]
|
||
[[pt:.minecraft]]
|
||
[[ru:.minecraft]]
|
||
[[th:.minecraft]]
|
||
[[tr:.minecraft]]
|
||
[[uk:.minecraft]]
|
||
[[zh:.minecraft]]
|