Skip to content

MCPath Class

Base class for all Minecraft paths.

Parameters

NameTypeDescription
editionstringThe edition of Minecraft this path is from
platformstringThe current platform
rootstringGet the path to the main Minecraft folder.
worldsstringGet the path of the directory holding world files.
resource_packsstringGet the path of the directory holding resource pack files.
behavior_packsstringGet the path of the directory holding behavior pack files.
development_resource_packsstringGet the path of the directory holding development resource pack files.
development_behavior_packsstringGet the path of the directory holding development behavior pack files.
screenshotsstringGet the path of the directory holding screenshot files.

Examples

py
import mcpath

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

print(mcpath.bedrock.worlds)
# C:\Users\<USER>\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\minecraftWorlds

Not associated with or approved by Mojang Studios or Microsoft