Hello everyone! In this part I will show you how to export your mod so other players can use it.
This won’t be a long part, but it is an importang thing to know.
Open the folder where your forge workspace is installed. In there you will find a build.gradle file. Open this with a text editor, I use notepad++.
In the file you have to change a couple of things. Search for group and change the value. I will use com.suppergerrie2.stm (com.NAME.MODID). Then search for archivesBaseName and change the value to your modid. You can also change the version if you want to. I will keep it at 1.0.
Save the file and return to the folder.
Now open a command window and navigate to the folder. (On windows you can also use shift-rightclick->open powershell here).
In the command window use the following command: gradlew.bat build.
Now wait for the command to finish and if everything goes well you shouldn’t get any errors.
Now navigate to FORGEFOLDER/build/libs, in there you will find a jar file named MODID-VERSION.jar. You can use this jar file just like you would install other mods.
That was everything for this part. As always if you have any question don’t hesitate to ask in the comments! Also if you saw any errors in the tutorial please let me know so I can fix it!