- 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
Add this to your pom.xml:
<dependencies>
<dependency>
<groupId>net.consler</groupId>
<artifactId>librelauncherlib</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>Add this to your build.gradle:
dependencies {
implementation 'net.consler:librelauncherlib:1.3.0'
}-
Install:
new MinecraftInstaller().install(version, gameDir, ModloaderProfile.VANILLA());
-
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);
Read our wiki!