This Gradle plugin is used to generate Minecraft server source code by remapping and decompiling Mojang's Minecraft server. The plugin only supports Minecraft versions 26.1 and later.
- JDK 25
- Gradle 9.7+
Kotlin DSL (build.gradle.kts):
plugins {
id("vn.io.huangnosimp.conduit") version "1.0.0"
}
conduit {
mcVersion = "26.1" // replace with the version you want
}Groovy DSL (build.gradle):
plugins {
id 'vn.io.huangnosimp.conduit' version '1.0.0'
}
conduit {
mcVersion = '26.1' // replace with the version you want
}Then run:
./gradlew extractToWorkspaceAfter running it, you will have:
src/minecraft/java/
src/minecraft/resources
All tasks belong to the conduit group — run ./gradlew tasks --group conduit at any time to see this list again.
| Task | Description |
|---|---|
downloadMcManifest |
Downloads the list of all available Minecraft versions |
downloadVersionManifest |
Downloads the detailed manifest for the configured version |
downloadBundleJar |
Downloads the server bundler jar |
extractBundleJar |
Extracts server.jar and its bundled libraries |
remapServerJar |
Remaps server.jar to mache's mappings |
decompileServerJar |
Decompiles the remapped server jar |
applyMachePatches |
Applies the source patches provided by mache |
extractToWorkspace |
Exports the source code and resources to the workspace and initializes a Git repository |