Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders.
Java | Bedrock | Preview/Beta | Education | Runtime | |
---|---|---|---|---|---|
Android [1] | ❌ | ✅ | ❌ | ❌ | ❌ |
Darwin | ✅ [3] | ❌ | ❌ | ❌ | ✅ [3] |
iOS [2] | ❌ | ✅ | ❌ | ❌ | ❌ |
Linux | ✅ | ✅ [4] | ❌ | ❌ | ✅ |
Windows | ✅ | ✅ | ✅ | ✅ | ✅ |
- With Pydroid 3
- With Pyto
- Has not been tested.
- With mcpelauncher.
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 |
Install the module with pip:
pip3 install mcpath
Update existing installation: pip3 install mcpath --upgrade
Name | Usage |
---|---|
requests |
Get runtime component and version using mojang's API |
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