Skip to content
📚 On this page

Data Storage

XMCL data is divided into two parts:

  1. XMCL as a cache and database generated by chromium
  2. Minecraft related data

XMCL cache and database

The cache related to XMCL itself is stored in the system appdata path, which is different on different platforms.

cmd
%AppData%\xmcl
cmd
%LocalAppData%\Packages\XMCL_ncdvebj03zfcm\LocalCache\Roaming\xmcl
# Version >= 0.34
%LocalAppData%\Packages\XMCL_68mcaawk44tpj\LocalCache\Roaming\xmcl
sh
~/Library/Application Support/xmcl
sh
~/.config/xmcl

Note

Do not delete the files here unless you know what you are doing.

Here you will find some json files used to store various configurations, and the database will also be stored here.

  • User data. Stores users' accounts, skin links, etc. Stored in the /user.json file.
  • Global settings. Global settings, such as language, proxy URL, download node, etc. Stored in the /settings.json file.
  • Instance cache. Records the last selected instance path and the paths of all known instances. Stored in the /instances.json file.
  • Java cache. Records detected Java paths, version information, etc. Stored in the /java.json file.
  • Resource database. Metadata for resource files, such as parsed mod information. Stored in leveldb format, in the /resources-v2 folder.
  • Logs. XMCL historical logs. Stored in the /logs folder.

I believe you are very familiar with the directory structure of Minecraft data. The data directory of XMCL is slightly different from that of Minecraft:

<公用数据文件夹>
XMCL 的中央数据文件夹
mods
modA.jar
上面实例连接的实际文件
modB.jar
其他的 Mod 文件
resourcepacks
上面实例 resourcepacks 链接的真实地址
shaderpacks
上面实例 shaderpacks 链接的真实地址
versions
所有版本的存储文件夹
assets
所有游戏资源的存储文件夹
libraries
所有库文件的存储文件夹
instances
所有由 XMCL 自动创建的(导入除外)实例都在这里

Most of the content is actually the same as Minecraft, among which the instances folder contains all instance files.

Released under the MIT License.