MCP-Reborn is an MCP (Mod Coder Pack) for Minecraft. Use it to make modded clients and to read through the game's code. It's built on MCPConfig and ForgeGradle from the MinecraftForge team.
1.13 to 26.3. Every Minecraft version has its own branch, and this one is for 26.3. To work on another version, switch to its branch.
| Minecraft | JDK |
|---|---|
| 1.13 to 1.16.5 | JDK 8 |
| 1.17 | JDK 16 |
| 1.18 to 1.20.x | JDK 17 |
| 1.21 to 1.21.11 | JDK 21 |
| 26.1 and newer | JDK 25 |
Gradle has to run on that JDK as well. In IntelliJ you set it under Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM.
-
Clone this branch, or download it as a zip, and open
build.gradlein IntelliJ as a project. Any editor will do since it's a plain Gradle project. From a terminal, run the same tasks with./gradlew <task>. -
Run the
setuptask. In IntelliJ it's in the Gradle tool window (View > Tool Windows > Gradle) under MCP.
This downloads Minecraft, decompiles it into
src/main/javaand copies the game's assets intorun/assets. The first run takes a while. -
Change whatever you like in
src/main/java. -
Run
runclientto compile your changes and start the game. You can also use the "Minecraft" run configuration that IntelliJ picks up from the project.
-
Run the
installClienttask. It builds your client and puts it in the launcher's versions folder as26.3-mcp, json included. -
Restart the launcher, go to Installations, make a new installation and pick
26.3-mcpas its version.
To use a different name, pass -PversionName=my_mod. If your .minecraft folder isn't in the default place, point the task at it with -PmcDir=/path/to/.minecraft.
-
Run the
serverJartask. -
build/servernow hasserver.jarand alibrariesfolder. Copy both to wherever the server will run, and keeplibrariesnext toserver.jar. -
Start it like a vanilla server with
java -Xmx2G -jar server.jar nogui. The first start createseula.txt. Seteula=truein it and start the server again.
To try the server without building a jar, run runserver. It runs in the runserver folder.
Decompiled OptiFine sources that fit MCP-Reborn are in Hexeption/Optifine-SRC and on optifinesource.co.uk.
-
Run
setupon this branch first. -
Download the OptiFine source for 26.3 and extract it.
-
Copy everything except the
assetsfolder intosrc/main/java, replacing the files that are already there. -
Copy the
assetsfolder intosrc/main/resources. Create that folder if it doesn't exist. -
Run
runclient. OptiFine's options are under Video Settings.
Not every Minecraft version has an OptiFine source yet. The older ones in the repo are .rar archives.
- Hexeption
- kingdevnl