Skip to content

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibreLauncherLib

A powerful library for Minecraft launchers.

Maven Central Javadoc

JitPack JitPack Javadoc

Features

  • Installing any Minecraft version
  • Launching Minecraft with custom configurations
  • Support for all major mod loaders
  • Authenticating with Microsoft
  • Handling mods, resource packs, datapacks, servers, and worlds
  • Handling NBT
  • Easy-to-use API

Importing

Maven

Add this to your pom.xml:

<dependencies>
   <dependency>
      <groupId>net.consler</groupId>
      <artifactId>librelauncherlib</artifactId>
      <version>1.3.0</version>
   </dependency>
</dependencies>

Gradle

Add this to your build.gradle:

dependencies {
    implementation 'net.consler:librelauncherlib:1.3.0'
}

Example usage

  1. Install:

    new MinecraftInstaller().install(version, gameDir, ModloaderProfile.VANILLA());
  2. Launch:

    LaunchProfile launchProfile = new LaunchProfile.Builder(version, gameDir).build();
    AuthProfile authProfile = new MicrosoftAuthenticator().login(new WebViewFrame()).join();
    ModLoaderProfile modLoaderProfile = new ModLoaderProfile(ModLoaderProfile.FABRIC_ID, "0.19.5")
    
    new MinecraftLauncher().launch(launchProfile, authProfile, modloaderProfile);

More information

Read our wiki!

About

Java library for downloading and launching Minecraft.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages