Add loom mods block

This commit is contained in:
glitch 2023-09-25 15:47:51 -05:00
parent cf742986e7
commit 55e7547d49

View file

@ -18,6 +18,19 @@ repositories {
// for more information about repositories. // for more information about repositories.
} }
loom {
// Loom and Loader use this block to gather more information about your mod.
mods {
// This should match your mod's mod id.
"example_mod" {
// Tell Loom about each source set used by your mod here. This ensures that your mod's classes are properly transformed by Loader.
sourceSet("main")
// If you shade (directly include classes, not JiJ) a dependency into your mod, include it here using one of these methods:
//dependency("com.example.shadowedmod:1.2.3")
//configuration("exampleShadedConfigurationName")
}
}
}
// All the dependencies are declared at gradle/libs.version.toml and referenced with "libs.<id>" // All the dependencies are declared at gradle/libs.version.toml and referenced with "libs.<id>"
// See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work. // See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work.
dependencies { dependencies {