Prerequisites
Before you begin, ensure you have the following installed on your system:Gradle
Build automation tool for compiling LiquidBounce
Node.js
Required for building the client’s custom theme system
Git
Version control for cloning the repository with submodules
JDK 21+
Java Development Kit for running and building the project
Check Gradle Installation
Gradle is essential for building LiquidBounce. Verify your installation:LiquidBounce uses Gradle wrapper (
gradlew), so you can use the included wrapper script even without a system-wide Gradle installation.Check Node.js Installation
Node.js is required for building the theme system. Verify your installation:Installation Steps
Generate Sources (Optional)
Generate decompiled Minecraft sources for better IDE support:On Windows, use:
This step is optional but highly recommended for development. It provides better code completion and allows you to browse Minecraft’s source code in your IDE.
Open in Your IDE
Open the project folder as a Gradle project in your preferred IDE:IntelliJ IDEA (Recommended):
- File → Open → Select the
LiquidBouncefolder - IntelliJ will automatically detect it as a Gradle project
- Wait for Gradle to sync and index the project
- File → Import → Gradle → Existing Gradle Project
- Select the
LiquidBouncefolder
- Open the folder in VS Code
- Install the “Gradle for Java” extension
- Let the extension configure the project
Build Configuration
LiquidBounce’s build is configured through several files:build.gradle.kts
The main build script written in Kotlin DSL. Key configurations:- Minecraft Version: Defined in
gradle/libs.versions.toml - Fabric Loader: Mod loading framework
- Fabric API: Core API for Fabric mods
- Fabric Kotlin: Kotlin language support for Fabric
gradle.properties
Project properties and metadata:Theme System
LiquidBounce includes a custom theme built with Node.js:Theme Build Process
The theme is automatically built during compilation:- npmInstallTheme: Installs Node.js dependencies
- buildTheme: Builds the theme using Rollup
- bundleTheme: Packages the theme into a ZIP file
The theme build is automatically triggered by the
processResources task, so you don’t need to build it manually.Building the JAR
To build a distributable JAR file:First Launch
Launch Minecraft
After running
./gradlew runClient, Minecraft will start with LiquidBounce installed.Verify Installation
Look for the LiquidBounce logo and branding in the main menu. You should see:
- Modified main menu (if theme is loaded)
- LiquidBounce version in the corner
- Access to the ClickGUI (press Right Shift)
Troubleshooting
Build fails with 'submodules not found'
Build fails with 'submodules not found'
You forgot to clone with
--recurse-submodules. Fix it by running:Theme build errors
Theme build errors
Ensure Node.js and npm are properly installed:Then clean and rebuild:
Out of memory errors
Out of memory errors
Increase Gradle’s memory allocation in
gradle.properties:IDE doesn't recognize Kotlin files
IDE doesn't recognize Kotlin files
Make sure the Kotlin plugin is installed in your IDE. For IntelliJ IDEA:
- File → Settings → Plugins
- Search for “Kotlin” and install it
- Restart the IDE
Development Tools
Code Quality
LiquidBounce uses Detekt for code quality:Testing
Run the test suite:Documentation
Generate Dokka documentation:Next Steps
Now that you have LiquidBounce installed, learn how to use it:Quick Start Guide
Learn the basics and enable your first module
Contributing
Contribute to LiquidBounce development