A Fabric only template for Greenhouse mods. Modified from https://github.com/FabricMC/fabric-example-mod
Find a file Use this template
Anastasia Calico fc719a1c07
All checks were successful
Build / build (push) Successful in 18m37s
Test / build (push) Successful in 18m57s
Merge remote-tracking branch 'origin/1.21.5' into 1.21.5
2025-09-24 20:47:25 +10:00
.forgejo/workflows fix: Fix cache being read only in Forgejo Actions. 2025-09-24 20:47:04 +10:00
build_logic feat: Initial commit. 2025-09-15 12:24:36 +10:00
gradle feat: Initial commit. 2025-09-15 12:24:36 +10:00
src feat: Initial commit. 2025-09-15 12:24:36 +10:00
.editorconfig feat: Initial commit. 2025-09-15 12:24:36 +10:00
.gitattributes feat: Initial commit. 2025-09-15 12:24:36 +10:00
.gitignore feat: Initial commit. 2025-09-15 12:24:36 +10:00
build.gradle.kts feat: Initial commit. 2025-09-15 12:24:36 +10:00
CHANGELOG.md feat: Initial commit. 2025-09-15 12:24:36 +10:00
gradle.properties feat: Initial commit. 2025-09-15 12:24:36 +10:00
gradlew fix: Make gradlew executable. 2025-09-15 12:40:21 +10:00
gradlew.bat feat: Initial commit. 2025-09-15 12:24:36 +10:00
LICENSE feat: Initial commit. 2025-09-15 12:24:36 +10:00
README.md docs: MLT -> Fabric Example Mod. 2025-09-15 12:38:21 +10:00
settings.gradle.kts feat: Initial commit. 2025-09-15 12:24:36 +10:00

Greenhouse Multiloader Template

This is a version of the Fabric Example Mod that is tailored towards Fabric only Greenhouse mods.

Swapping Versions

Versions and properties are not within gradle.properties. This is because Kotlin DSL does not play nicely with gradle.properties. Versions and dependency definition are contained within gradle/libs.versions.toml. Properties are contained within build_logic/src/main/kotlin/lgbt/greenhouse/examplemod/gradle/Properties.kt.

It is ideal to change any mention of examplemod within the codebase when creating from this template.

Changes from Fabric Example Mod

The main changes from the Fabric Example Mod, which we have forked are:

  • Uses Kotlin DSL instead of Groovy DSL.
  • Moved versions to libs.versions.toml instead of gradle.properties.
  • Rewrites to expanded properties to create less overhead.
  • Modmuss' mod publish plugin is set up for both loaders. For CurseForge, Modrinth and Forgejo.
    • Feel free to remove any of these, you may desire Forgejo only if the mod is supposed to be an internal library.
    • You can run this with publishMods. Just make sure tokens are set up.

Remember to change this README for any projects!