You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id("dev.deftu.gradle.multiversion") // Applies preprocessing for multiple versions of Minecraft and/or multiple mod loaders.
9
-
id("dev.deftu.gradle.tools") // Applies several configurations to things such as the Java version, project name/version, etc.
10
-
id("dev.deftu.gradle.tools.resources") // Applies resource processing so that we can replace tokens, such as our mod name/version, in our resources.
11
-
id("dev.deftu.gradle.tools.bloom") // Applies the Bloom plugin, which allows us to replace tokens in our source files, such as being able to use `@MOD_VERSION` in our source files.
12
-
id("dev.deftu.gradle.tools.shadow") // Applies the Shadow plugin, which allows us to shade our dependencies into our mod JAR. This is NOT recommended for Fabric mods, but we have an *additional* configuration for those!
13
-
id("dev.deftu.gradle.tools.minecraft.loom") // Applies the Loom plugin, which automagically configures Essential's Architectury Loom plugin for you.
14
-
id("dev.deftu.gradle.tools.minecraft.releases") // Applies the Minecraft auto-releasing plugin, which allows you to automatically release your mod to CurseForge and Modrinth.
5
+
id("net.fabricmc.fabric-loom-remap") version "1.14-SNAPSHOT"
6
+
id("org.jetbrains.kotlin.jvm") version "2.3.0"
7
+
id("dev.deftu.gradle.bloom") version "0.2.0"
15
8
}
16
9
17
-
toolkitMultiversion {
18
-
moveBuildsToRootProject =true
10
+
val modid = property("mod.id")
11
+
val modname = property("mod.name")
12
+
val modversion = property("mod.version")
13
+
val mcversion = property("minecraft_version")
14
+
15
+
base {
16
+
archivesName.set(property("mod.id") asString)
19
17
}
20
18
21
-
toolkitLoomHelper {
22
-
useOneConfig {
23
-
version ="1.0.0-alpha.153"
24
-
loaderVersion ="1.1.0-alpha.49"
19
+
repositories {
20
+
maven("https://maven.parchmentmc.org")
21
+
maven("https://repo.polyfrost.org/releases")
22
+
maven("https://repo.polyfrost.org/snapshots")
23
+
maven("https://maven.gegy.dev/releases")
24
+
}
25
25
26
-
usePolyMixin =true
27
-
polyMixinVersion ="0.8.4+build.2"
26
+
loom {
27
+
runConfigs.all {
28
+
ideConfigGenerated(stonecutter.current.isActive)
29
+
runDir ="../../run"// This sets the run folder for all mc versions to the same folder. Remove this line if you want individual run folders.
30
+
}
28
31
29
-
applyLoaderTweaker =true
32
+
runConfigs.remove(runConfigs["server"]) // Removes server run configs
33
+
}
30
34
31
-
for (module in arrayOf("commands", "config", "config-impl", "events", "internal", "ui", "utils")) {
0 commit comments