A simple patch creation tool for MCP which lets you distribute your changes to the client in the form of patch files. These scripts currently setup MCP 1.16.2.
-
git
-
unrar
(Required to add optifine)
-
Make
mcp-patcher
file executable with command:chmod +x mcp-patcher
. -
Make
scripts/*
executable with command:chmod +x scripts/*
. -
Run the setup with command:
./mcp-patcher setup
. -
You can now open the Client/ folder in IDE of choice to make changes.
-
Note: The setup starts the gradle daemon, you might want to stop this after the setup as it has a significant amount of resource usage.
-
Once you make changes to your client, use git to create a commit in the Client folder.
-
Change your directory to the main repo and run the command:
./mcp-patcher generate
. -
You will now find generated patches in the Patches/ folder, which can be pushed to your remote git repository.
-
Once you pull remote changes, you need to apply the new patches.
-
Change your directory to the main repo and run the command:
./mcp-patcher patch
. -
You will now find that the new patches have been applied to your Client source code.
-
Rusty Shackleford for helping create this project.
-
MCP-Reborn for a working MCP (Hexeption, kingdevnl)
-
Optifine-SRC for optifine source code (Hexeption)
-
Paper for parts of some scripts (PaperMC Team)
-
MinecraftForge for MCPConfig, ForgeGradle (MinecraftForge Team)