Skip to content
项目

关于

MCP-Reborn 是适用于 Minecraft 的 MCP(Mod Coder Pack),用于制作模组客户端和研究 Minecraft 代码。(1.13–26.3)

游戏与模拟器

这些数字如何统计

实测星标增长

24小时
0
7天
+3
15天
+6
1个月
+13

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

MCP-Reborn Build Status

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.

:warning: WARNING :warning:: You CANNOT publish any code generated by this tool.

Supported versions

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.

Java

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.

Setting up

  1. Clone this branch, or download it as a zip, and open build.gradle in 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>.

  2. Run the setup task. In IntelliJ it's in the Gradle tool window (View > Tool Windows > Gradle) under MCP.

    373de4ebc77d5079584370dd7fbe8745

    This downloads Minecraft, decompiles it into src/main/java and copies the game's assets into run/assets. The first run takes a while.

  3. Change whatever you like in src/main/java.

  4. Run runclient to compile your changes and start the game. You can also use the "Minecraft" run configuration that IntelliJ picks up from the project.

Installing into the launcher

  1. Run the installClient task. It builds your client and puts it in the launcher's versions folder as 26.3-mcp, json included.

  2. Restart the launcher, go to Installations, make a new installation and pick 26.3-mcp as 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.

Building a server

  1. Run the serverJar task.

  2. build/server now has server.jar and a libraries folder. Copy both to wherever the server will run, and keep libraries next to server.jar.

  3. Start it like a vanilla server with java -Xmx2G -jar server.jar nogui. The first start creates eula.txt. Set eula=true in it and start the server again.

To try the server without building a jar, run runserver. It runs in the runserver folder.

Adding OptiFine

Decompiled OptiFine sources that fit MCP-Reborn are in Hexeption/Optifine-SRC and on optifinesource.co.uk.

  1. Run setup on this branch first.

  2. Download the OptiFine source for 26.3 and extract it.

  3. Copy everything except the assets folder into src/main/java, replacing the files that are already there.

  4. Copy the assets folder into src/main/resources. Create that folder if it doesn't exist.

  5. 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.

Creators

  • Hexeption
  • kingdevnl

Special thanks to the MinecraftForge team, who made this tool possible. ❤

探索相关项目

加载中…