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
Section titled “1. Create the Project”- Open IntelliJ IDEA.
- Select New Project $\rightarrow$ Choose Gradle (Java/Kotlin).
2. Configure Gradle
Section titled “2. Configure Gradle”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'}3. First Startup
Section titled “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);val config = 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(VanillaLoader("1.21.11")) .build()
Launcher.launchMinecraft( user, config)