Skip to content

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. Open IntelliJ IDEA.
  2. Select New Project $\rightarrow$ Choose Gradle (Java/Kotlin).

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

repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
// Replace 2.1.0 with your preferred version
implementation 'com.github.dervarex.minified:minified-launch:2.1.0'
}

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
);