It is a Visor addon template to start from. The shared code is in mod-core, each loader project
(mod-fabric, mod-forge) compiles it into its own jar.
- Change the values in
Modblock ofgradle.properties - Rename the
your.mod.templatepackage everywhere. Don't forget to update the entrypoint inmod-fabric/src/main/resources/fabric.mod.jsonand the package inmod.mixins.json - Apply Minecraft version you need:
gradlew useMinecraft-1.21.1(All available versions:gradlew tasks --group minecraft) - Loaders to build:
enabled_platformsingradle.properties
Run with gradlew :mod-fabric:runClient or gradlew :mod-forge:runClient.
Once you finished with that you can remove no longer needed stuff:
- Delete the
versionsfolder - Delete
gradle/minecraft.gradle - Open
build.gradleand remove this block:apply from: "gradle/minecraft.gradle" - Open
settings.gradleand keep only theincludelines of theifblock at the end - Delete or rewrite README.md
- Copy these to your project dependencies:
versions/<your Minecraft version>.properties - Copy from
build.gradlethe Modrinth repository andvisordependencies (and the API one frommod-core/build.gradlefor shared code), fromfabric.mod.jsonandMETA-INF/mods.tomlthevisordependency - Register the addon in each loader's entrypoint, as both
TemplateModclasses do