Minecraft Modding Guide

How to export a Forge mod to CurseForge (1.18 and all versions)

After creating a mod using Forge, the next logical step is to export that mod so you can share it with other players. Luckily, this step is not too difficult.

Build.gradle file

Before exporting, make sure you have configured everything in the build.gradle file. This is where you can specify the name of your mod, as well as the vendor and version number. The name of the file that gets built is determined by what you enter for archivesBaseName. For my mod, called Paintings Plus, I have used the following:

Exporting Mod With Gradle

To export the .jar file for your mod, you'll need to run the build Gradle task. You can do this on the command line by running gradlew build , or through your IDE. In IntelliJ, you will see that task under the Gradle tasks window.

Once the build task has run, you'll notice there is a folder called build that gets created in your directory. Inside /build/libs/ you will see the jar file for your mod.

This .jar file is what you will distribute to other players, in order for them to use your mod!

Uploading to CurseForge

The easiest way to distribute your mod to other players is to upload it to CurseForge. If you navigate to the Minecrafts mods section on CurseForge, you'll see there is a button to "Start Project".

The Start Project page will prompt you for information about your mod, including the Minecraft version it's for, it's description, and a logo. Fill out this information before clicking "Start Project" at the bottom of the page to launch your mod project page.

Once you have created your mod project, you can upload the jar that we exported earlier. The CurseForge team will review your mod submission, and once they have approved it the whole world will be able to download your mod!

That's it! Happy modding.

Interested in creating your own Minecraft mods with little to no coding? Check out my app: