This is an adaptation of the Forge MDK example mod. I initially ran into a lot of issues getting the example mod working, so this repository represents my own tweaks to it to make it work the way I want it to.
As of the last time I updated this file, this template mod should work for Forge version 1.16.4-35.1.4
.
- Find and rename all instances of
marktemplatemod
andMarkTemplateMod
to something relevant to your own mod. - Re-home the now renamed
MarkTemplateMod.jar
to a more appropriate folder now that your mod is not called MarkTemplateMod. - Customize
build.gradle
and.\src\main\resources\pack.mcmeta
and.\src\main\resources\META-INF\mods.toml
for your own mod. - Start replacing the example code with your own.
In the root folder for this repository run .\gradlew.bat build
.
.\gradlew.bat runClient
Doing a "build" (see above) will create a .jar file for your mod in the .\build\libs\
folder.