Skip to content

Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders.

License

Notifications You must be signed in to change notification settings

legopitstop/mcpath

Repository files navigation

mcpath

Tests PyPI Python Downloads Status Code style: black Issues

Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders.

Supported Platforms

Java Bedrock Preview/Beta Education Runtime
Android [1]
Darwin [3] [3]
iOS [2]
Linux [4]
Windows
  1. With Pydroid 3
  2. With Pyto
  3. Has not been tested.
  4. With mcpelauncher.

Paths

Argument Name Example
root C:\Users\USER\AppData\Roaming\.minecraft
launcher C:\XboxGames\Minecraft Launcher\Content\Minecraft.exe
executable minecraft://
worlds C:\Users\USER\AppData\Roaming\.minecraft\saves
resource_packs C:\Users\USER\AppData\Roaming\.minecraft\resourcepacks
behavior_packs C:\Users\USER\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\behavior_packs
development_resource_packs C:\Users\USER\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\development_resource_packs
development_behavior_packs C:\Users\USER\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\development_behavior_packs
screenshots C:\Users\USER\AppData\Roaming\.minecraft\screenshots

Installation

Install the module with pip:

pip3 install mcpath

Update existing installation: pip3 install mcpath --upgrade

Requirements

Name Usage
requests Get runtime component and version using mojang's API

Examples

from mcpath import java

print(java.worlds)
# C:\Users\USER\AppData\Roaming\.minecraft\saves
import mcpath

print(mcpath.get_runtime('1.21.3'))
# C:\Users\USER\AppData\Local\Packages\Microsoft.4297127D64EC6_8wekyb3d8bbwe\LocalCache\Local\runtime\java-runtime-delta\windows-x64\java-runtime-delta\bin\java.exe