https://github.com/legopitstop/mcpath
Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders.
https://github.com/legopitstop/mcpath
bedrock behaviorpacks education hacktoberfest java minecraft modtoberfest paths preview pypi python resourcepacks screenshots world
Last synced: 1 day ago
JSON representation
Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders.
- Host: GitHub
- URL: https://github.com/legopitstop/mcpath
- Owner: legopitstop
- License: mit
- Created: 2024-09-11T23:49:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T00:45:13.000Z (9 months ago)
- Last Synced: 2024-10-28T03:49:26.782Z (9 months ago)
- Topics: bedrock, behaviorpacks, education, hacktoberfest, java, minecraft, modtoberfest, paths, preview, pypi, python, resourcepacks, screenshots, world
- Language: Python
- Homepage: https://pypi.org/project/mcpath/
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# mcpath

[](https://pypi.org/project/mcpath/)
[](https://www.python.org/downloads//)


[](https://github.com/ambv/black)
[](https://github.com/legopitstop/mcpath/issues)Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders, launchers, executables and java runtime.
## Installation
Install the module with pip:
```bat
pip3 install mcpath
```Update existing installation: `pip3 install mcpath --upgrade`
## Supported Platforms
| | Java | Bedrock | Preview/Beta | Education |
| ----------------- | -------- | -------- | ------------ | --------- |
| **Android** _[1]_ | ❌ | ✅ | ❌ | ❌ |
| **Darwin** | ✅ _[3]_ | ❌ | ❌ | ❌ |
| **iOS** _[2]_ | ❌ | ✅ | ✅ | ✅ |
| **Linux** | ✅ | ✅ _[4]_ | ❌ | ❌ |
| **Windows** | ✅ | ✅ | ✅ | ✅ |1. With [Pydroid 3](https://play.google.com/store/apps/details?id=ru.iiec.pydroid3&hl=en_US)
2. With [Pyto](https://apps.apple.com/us/app/pyto-ide/id1436650069)
3. Has not been tested.
4. With [mcpelauncher](https://mcpelauncher.readthedocs.io/en/latest/).## Requirements
| Name | Usage |
| ------------------------------------------------------------ | ---------------------------------------------------- |
| [`requests`](https://pypi.org/project/requests/) | Get runtime component and version using Mojang's API |
| [`requests-cache`](https://pypi.org/project/requests-cache/) | For caching version data. |## Examples
### Saves
```Python
import mcpathprint(mcpath.java.get_saves_dir())
# C:\Users\USER\AppData\Roaming\.minecraft\saves
```### `.minecraft`
```Python
import mcpathprint(mcpath.java.get_root_dir())
# C:\Users\USER\AppData\Roaming\.minecraft
```### Game
```Python
import mcpathprint(mcpath.java.get_game_dir())
# D:\minecraft
```### Java Runtime Executable
```Python
import mcpathprint(mcpath.java.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
```