N
Common Ground News

How to compile a minecraft mod

Author

James Craig

Updated on March 22, 2026

How to compile a minecraft mod

Your mod compiled and in build folder. First run gradlew.bat with command cleancache –refresh-dependencies (Just edit your bat-file to “gradlew.bat cleancache –refresh-dependencies”) If you getting error again reinstall forge acoording to …

There are other answers below:

Finale of the Basic Tutorials! THANKS FOR 100 SUBS.Advanced Tutorials soon. I have prepared some tutorials for different block shapes which will be uploaded …

Sort by: best. level 1. · 7 yr. ago. Pretty simple actually. First, make a new folder somewhere on your computer. Second, download the source from github as a zip. Should be a button for it. Third, unzip the source into that folder you made. Open a terminal prompt in that folder and run the command: “gradlew build”.

BON allows you to de-obfuscate Minecraft mod archives using the configuration from an MCP directory that’s been used to decompile Minecraft. The input is a production mod archive (which references the obfuscated Minecraft class/method/field names) and the path to your MCP directory. The output is a mod archive that should be useable in a deobfuscated …

Selecting The ToolsSetting Up The ProjectGetting to Know The ProjectLet’s Build Our Mod!Learning ResourcesConclusionHere are some resources that may come in handy if you want to learn more about Minecraft Modding: 1. The Fabric Wiki. This one has already been mentioned in the article, but seriously, go check it out because there’s a lot of content that I haven’t covered! 2. The Forge API. The Forge API is the most famous Minecraft API, you may want to check it o…

Applications you’ll need to edit Minecraft source code Before you can create a mod, you’ll need to download the following applications: 1. Java SDK The development kit that lets you compile Java code into executable programs. Java SDK 2. MCP o The Minecraft Coder Pack

Open a console in the folder. You should see a gradlew and gradlew.bat file. From there, you run the build command. It depends on the shell you are using, but gradlew build, ./gradlew build, or gradlew.bat build should do it for you. You do not need to …

MCmake is a command line tool for making data packs that supports variables, conditions and loops. MCmake is intended to avoid coping entire commands over and over only to change a block id or a number. It first started as a template processor and it evolved to a sort of compiler. MCmake is available for Windows (as installer), MacOS (as stand …

What do I need to make a Minecraft Minecraft mod?

Minecraft uses Java and so does Fabric, which means we also need to have the Java Development Kit or JDK installed. To be more specific, we need the JDK 8 to be able to compile our mod. You can download it on this page. Last but not least, we need to pick a code editor, in this case, I chose Visual Studio Code because it’s my favorite editor.

What is the best Minecraft code decompiler?

MCP o The Minecraft Coder Pack This is an awesome pack that contains a selection of folders and batch files to help you decompile java code, obfuscate code and run mods in a test environment. You’ve got no chance without this!

What do I need to run Minecraft on Java?

Minecraft uses Java and so does Fabric, which means we also need to have the Java Development Kit or JDK installed. To be more specific, we need the JDK 8 to be able to compile our mod.

How do I run a new Minecraft code?

After the codes compiled, you can run the new Minecraft code using the MCP file called test_game.bat. Just double click the file and Minecraft will run as usual. If you want to distribute your changes to other Minecraft players and post them on the Minecraft Forum you’ll need to perform a few more steps.