quilt

quilt contains functions for dealing with the Quilt modloader.

You may have noticed, that the Functions are the same as in the fabric module. That’s because Quilt is a Fork of Fabric. This module behaves exactly the same as the fabric module.

get_all_minecraft_versions() list[QuiltMinecraftVersion]

Returns all available Minecraft Versions for Quilt

Example:

for version in minecraft_launcher_lib.quilt.get_all_minecraft_versions():
    print(version["version"])
Return type:

list[QuiltMinecraftVersion]

get_stable_minecraft_versions() list[str]

Returns a list which only contains the stable Minecraft versions that supports Quilt

Example:

for version in minecraft_launcher_lib.quilt.get_stable_minecraft_versions():
    print(version)
Return type:

list[str]

get_latest_minecraft_version() str

Returns the latest unstable Minecraft versions that supports Quilt. This could be a snapshot.

Example:

print("Latest Minecraft version: " + minecraft_launcher_lib.quilt.get_latest_minecraft_version())
Return type:

str

get_latest_stable_minecraft_version() str

Returns the latest stable Minecraft version that supports Quilt

Example:

print("Latest stable Minecraft version: " + minecraft_launcher_lib.quilt.get_latest_stable_minecraft_version())
Return type:

str

is_minecraft_version_supported(version: str) bool

Checks if a Minecraft version supported by Quilt

Example:

version = "1.20"
if minecraft_launcher_lib.quilt.is_minecraft_version_supported(version):
    print(f"{version} is supported by quilt")
else:
    print(f"{version} is not supported by quilt")
Parameters:

version (str) – A vanilla version

Return type:

bool

get_all_loader_versions() list[QuiltLoader]

Returns all loader versions

Example:

for version in minecraft_launcher_lib.quilt.get_all_loader_versions():
    print(version["version"])
Return type:

list[QuiltLoader]

get_latest_loader_version() str

Get the latest loader version

Example:

print("Latest loader version: " + minecraft_launcher_lib.quilt.get_latest_loader_version())
Return type:

str

get_latest_installer_version() str

Returns the latest installer version

Example:

print("Latest installer version: " + minecraft_launcher_lib.quilt.get_latest_installer_version())
Return type:

str

install_quilt(minecraft_version: str, minecraft_directory: str | PathLike, loader_version: str | None = None, callback: CallbackDict | None = None, java: str | PathLike | None = None) None

Installs the Quilt modloader.

Example:

minecraft_version = "1.20"
minecraft_directory = minecraft_launcher_lib.utils.get_minecraft_directory()
minecraft_launcher_lib.quilt.install_quilt(minecraft_version, minecraft_directory)
Parameters:
  • minecraft_version (str) – A vanilla version that is supported by Quilt

  • minecraft_directory (str | PathLike) – The path to your Minecraft directory

  • loader_version (str | None) – The Quilt loader version. If not given it will use the latest

  • callback (CallbackDict | None) – The same dict as for install_minecraft_version()

  • java (str | PathLike | None) – A Path to a custom Java executable

Raises:
Return type:

None

View the source code of this module