Launching Basics

You should already have a User object from the Authentication Guide. If you haven't done that yet, please do so before continuing.
Additionally, you should have the gradle project set up from the Getting Started Guide.

1. Create the Project

  1. Open IntelliJ IDEA.
  2. Select New Project $\rightarrow$ Choose Gradle (Java/Kotlin).

2. Configure Gradle

Open your build.gradle file and add the repository and dependency:

repositories {
    mavenCentral()
}

dependencies {
    // Replace 3.3.0 with your preferred version
    implementation 'io.github.dervarex.minified:minified-launch:3.3.0'
}

3. First Startup

LaunchConfiguration config = new LaunchConfiguration.Builder()
        .downloadThreads(10)
        .launcherName("YourLauncherName")
        .launcherVersion("1.0.0")
        .assetsDirectory(Path.of("<assets-directory>"))
        .librariesDirectory(Path.of("<libraries-directory>"))
        .jarFile(Path.of("<client.jar>"))
        .isDemoUser(false)
        .loader(new VanillaLoader("1.21.11"))
        .build();

Launcher.launchMinecraft(
        user,
        config
);