A simple Fabric mod template that automatically generates metadata from Gradle properties.
- Automatic
fabric.mod.jsonvariable replacement - Centralized configuration through
gradle.properties - Easy version management
- Fabric Loom support
- Clean project structure
- GitHub-friendly setup
.
├── build.gradle
├── gradle.properties
└── src
└── main
└── resources
└── fabric.mod.json
Edit gradle.properties:
mod_id=my_mod
mod_version=1.0.0
mod_name=My Mod
author=YourNameAll values are automatically injected into fabric.mod.json during the build process.
./gradlew buildBuild outputs can be found in:
build/libs/
fabric.mod.json
{
"id": "${mod_id}",
"version": "${mod_version}",
"name": "${mod_name}"
}After building:
{
"id": "my_mod",
"version": "1.0.0",
"name": "My Mod"
}- Java 21+
- Gradle
- Fabric Loom
MIT License