A modification of the Multiloader Template moreso geared towards the Greenhouse Team's mods.
Find a file Use this template
Anastasia Calico f1d8dac76b
Some checks failed
Build / build (push) Failing after 19m11s
Test Fabric / build (push) Failing after 18m48s
Test NeoForge / build (push) Failing after 19m45s
build: Update to Gradle 9.1.0, fix Gradle cache read-only status in Forgejo actions.
2025-09-24 20:48:28 +10:00
.forgejo/workflows build: Update to Gradle 9.1.0, fix Gradle cache read-only status in Forgejo actions. 2025-09-24 20:48:28 +10:00
buildSrc fix: Fix sources in expanded properties. 2025-09-14 10:14:44 +10:00
fabric fix: Remove remaining direct GitHub references, fix maven link. 2025-09-14 10:13:07 +10:00
gradle build: Update to Gradle 9.1.0, fix Gradle cache read-only status in Forgejo actions. 2025-09-24 20:48:28 +10:00
neoforge fix: Remove remaining direct GitHub references, fix maven link. 2025-09-14 10:13:07 +10:00
xplat fix: Remove remaining direct GitHub references, fix maven link. 2025-09-14 10:13:07 +10:00
.editorconfig chore: add .editorconfig 2025-03-27 18:06:11 -04:00
.gitattributes feat: Update to 1.21.8 and refactor. 2025-09-01 06:58:22 +10:00
.gitignore fix: .gitignore .kotlin folder. 2025-09-01 07:29:06 +10:00
build.gradle.kts feat: Update to 1.21.8 and refactor. 2025-09-01 06:58:22 +10:00
CHANGELOG.md style: Reformat codebase. 2025-03-27 19:14:07 -04:00
gradle.properties fix: Don't disable daemon. 2025-09-17 04:20:39 +00:00
gradlew Port to 1.21. Close #59 2024-06-20 03:22:56 -06:00
gradlew.bat Update gradle and plugins 2024-04-19 18:38:10 -06:00
LICENSE Update LICENSE 2024-09-20 07:22:58 +10:00
README.md fix: Remove remaining direct GitHub references, fix maven link. 2025-09-14 10:13:07 +10:00
settings.gradle.kts fix: Add Greenhouse snapshot maven to settings.gradle.kts. 2025-09-17 15:41:07 +10:00

Greenhouse Multiloader Template

This is a version of the Multiloader Template that is tailored towards Greenhouse's mods.

Swapping Versions

Versions and properties are not within gradle.properties. This is because Kotlin DSL does not play nicely with gradle.properties. Versions are contained within buildSrc/src/main/kotlin/dev/greenhouseteam/examplemod/gradle/Versions.kt. Properties are contained within buildSrc/src/main/kotlin/dev/greenhouseteam/examplemod/gradle/Properties.kt.

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

Changes from MLT

The main changes from the Multiloader Template, which we have forked are:

  • Uses Kotlin DSL instead of Groovy DSL.
  • Renamed 'common' to 'xplat' to avoid sidedness confusion.
  • Cut down on a few classes.
  • Removed MinecraftForge support.
    • This will not be added, I'd rather not support a dying loader that does not want to improve.
  • Rewrites to expanded properties to fit loader conventions and create less overhead.
  • Removal of access transformer file from Fabric's build and refmap line in xplat mixins.json for NeoForge.
  • Added sided platform helpers for usage with client and server.
  • Moved the access point for platform helpers to xplat's main class (house.greenhouse.examplemod.ExampleMod) with an additional casted reference inside the individual platform helper class.
  • Set up client mixins from the example in the mixin.client package, following convention for Greenhouse mixins.
  • 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!