Skip to main content

mcpath

Tests PyPI Python Downloads Status Code style: black Issues

Get paths to Minecraft Java, Bedrock, Preview, and Education Edition folders, launchers, executables and java runtime.

Installation

Install the module with pip:

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
  2. With Pyto
  3. Has not been tested.
  4. With mcpelauncher.

Requirements

Name Usage
requests Get runtime component and version using Mojang's API
requests-cache For caching version data.

Examples

Saves

import mcpath

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

.minecraft

import mcpath

print(mcpath.java.get_root_dir())
# C:\Users\USER\AppData\Roaming\.minecraft

Game

import mcpath

print(mcpath.java.get_game_dir())
# D:\minecraft

Java Runtime Executable

import mcpath

print(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

Metadata

Release files for mcpath 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpath 2.1.1
File Size Uploaded Provenance Actions
mcpath-2.1.1.tar.gz 16.5 kB Without provenance Details for mcpath-2.1.1.tar.gz

Release files / mcpath-2.1.1.tar.gz

Download URL mcpath-2.1.1.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b159cfd4e6846bd82923c88223c0bbb4ac67c960de92965111f59007fa61a14
BLAKE2b-256 checksum
How to use checksums
64898b794ea8f111eea799dbbe52001be338ae7241fe4b147bc0ad5ff299f44f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for mcpath 2.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page