![build minecraft forge build minecraft forge](https://i.ytimg.com/vi/mgeJMGHVfS8/maxresdefault.jpg)
branch: the name of the branch this release is based on.owner: the name of the github account that owns repo.repo: the name of the repository to release to.releaseType: (optional) default is "release", could also be "beta" or "alpha".changelogUrl: url will be added to description body (optional, a changelog.txt file may be used instead).loader: "forge" or "fabric" (fabric will automatically mark for quilt as well).versions: array of supported minecraft versions.The config file contains a json object with the following fields: run gradlew publishMod whenever you want to publish a new version (can be done in a github action, example).
![build minecraft forge build minecraft forge](https://www.9minecraft.net/wp-content/uploads/2022/04/Minecraft-Forge.jpg)
define your api keys as environment variables and make sure you expose the required gradle properties (more info below).create the config file as specified bellow.import the script (bottom of adle): apply from: "".This script is less versatile than using the plugins directly so use whichever suits your situation best. Instead, I just put a one line script import in my adle file which will set up everything based on a json file containing the project's settings. Personally I dislike copy pasting the plugin boiler plate across all my projects. JustEnoughPublishing is a gradle script I wrote that uses the plugins above to release your mod based on a simple json configuration file. With a bit of configuration, they'll give you a gradle task to automatically upload a new release. If you get to that point, check out the following gradle plugins. Especially if you want to give players the choice of what distribution platform to use so you want to upload to multiple websites. If you end up making several mods, it will eventually get irritating to have to click through the website's interface to upload a file every time you want to release some new content. Still under development, some features you might want from their website aren't ready yet (comments, ad revenue sharing, analytics).Less popular than Curseforge, might not provide as much discoverability for your mod.Provides an api for downloading mods that isn't crippled by Curseforge's monetization obsession (this makes it easier for third party apps to integrate with them).They have their own modpack format that can be imported by ATLauncher, MultiMC, and Prism Launcher.It's nice to support platforms that prevent one company from having a total monopoly on mod distribution.Much faster and prettier website than Curseforge.Modrinth is an open source alternative to Curseforge. Page often load slowly and somewhat regularly its just completely down for a few hours. They have a popular launcher that integrates tightly with their mod and modpack platform.Your mod will probably reach more players if it can be used in popular modpacks. Lots of modpacks are developed using the Curseforge platform which only makes it easy to include mods from Curseforge.If your mod gets a lot of downloads you will earn Curse Points which can be redeemed to paypal.Include Minecraft specific meta data (version, mod loader, etc) with your uploaded files.You can upload files but there's no integrated system for marking which minecraft version and mod loader is supported (you can just write it in the description tho).Ĭurseforge has been the most popular website for hosting Minecraft mods for a long time. Doesn't have special support for minecraft mods.Don't have to create a new project on a new website if you're already using Github for version control.It also has "Github Releases" which lets you upload files and tag them as the release corresponding to a certain commit. Github is a great place to host your mod's code if you want it to be open source. If you want to give players the choice of what distribution platform they prefer, nothing's stopping you from uploading your mods to multiple websites. There are many websites that will let you upload your mods and make it easy for players to install them. To install the mod, just drop that jar file in minecraft/mods and launch the game with forge installed. When the task is finished running, your built jar file will be in the build/libs folder. Make sure you use cd to navigate to your mod project folder before running the command.