Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders.
Project description
mcpath
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 | ✅ | ✅ | ✅ | ✅ | ✅ |
- With Pydroid 3
- With Pyto
- Has not been tested.
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcpath-1.1.0.tar.gz
(7.9 kB
view details)
File details
Details for the file mcpath-1.1.0.tar.gz
.
File metadata
- Download URL: mcpath-1.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13691268b79ff920db4f8d06dbdd71e408e57a976a22b734c5cae8b798c263df |
|
MD5 | 62aa4fdac88d5552c15cbb26a49d9589 |
|
BLAKE2b-256 | 57cf3e1d679288fdcdbe6bbc9008ad5b500e73fe20f0b9ac59df361e92ca6afa |