Incendium addon
1import earth.terrarium.cloche.tasks.GenerateModJsonJarsEntry
2import net.msrandom.minecraftcodev.remapper.task.RemapJar
3
4plugins {
5 `maven-publish`
6 id("earth.terrarium.cloche") version "0.9.6"
7}
8
9repositories {
10 cloche {
11 mavenForge()
12 mavenFabric()
13 mavenNeoforged()
14 librariesMinecraft()
15 main()
16 }
17 maven("https://maven.neoforged.net/mojang-meta")
18 mavenLocal()
19 mavenCentral()
20}
21
22group = "xyz.naomieow"
23version = "3.0.0"
24
25cloche {
26 metadata {
27 modId = "ibo"
28 name = "Incendium Biomes Only"
29 description = "Disables everything but biomes in Incendium"
30 license = "LGPL-v3"
31
32 author {
33 name = "Naomi Roberts"
34 }
35 }
36
37 val datapack = common("common:datapack") {
38 // TODO: Remove
39 // Cloche can't generate without this rn
40 client()
41 }
42
43 forge("forge:1.19") {
44 minecraftVersion = "1.19"
45 loaderVersion = "41.1.0"
46
47 metadata {
48 dependencies {
49 dependency {
50 modId = "incendium"
51 required = true
52 version("5.1.4")
53 }
54 }
55 }
56
57 dependsOn(datapack)
58 }
59
60 fabric("fabric:1.19") {
61 minecraftVersion = "1.19"
62 loaderVersion = "0.16.0"
63
64 // TODO: Remove
65 // Cloche can't generate without this rn
66 client()
67
68 metadata {
69 dependencies {
70 dependency {
71 modId = "incendium"
72 required = true
73 version("5.1.4")
74 }
75 fabricApi("0.58.0")
76 }
77 }
78
79 dependsOn(datapack)
80 }
81
82 fabric("fabric:1.21") {
83 minecraftVersion = "1.21"
84 loaderVersion = "0.16.0"
85
86 // TODO: Remove
87 // Cloche can't generate without this rn
88 client()
89
90 metadata {
91 dependencies {
92 dependency {
93 modId = "incendium"
94 required = true
95 version("5.4.3")
96 }
97 fabricApi("0.102.0")
98 }
99 }
100
101 dependsOn(datapack)
102 }
103
104 neoforge("neoforge:1.21") {
105 minecraftVersion = "1.21"
106 loaderVersion = "21.0.167"
107
108 metadata {
109 dependencies {
110 dependency {
111 modId = "incendium"
112 required = true
113 version("5.4.3")
114 }
115 }
116 }
117
118 dependsOn(datapack)
119 }
120
121 tasks.withType<GenerateModJsonJarsEntry> {
122 val fabric119RemapJar: RemapJar by tasks
123 val fabric121RemapJar: RemapJar by tasks
124 jar.set(fabric119RemapJar.archiveFile)
125 jar.set(fabric121RemapJar.archiveFile)
126 }
127
128 val datapackZip by tasks.registering(Zip::class) {
129 from(cloche.common("common:datapack").sourceSet.output.resourcesDir!!) {
130 include("data/**")
131 }
132 archiveClassifier = "datapack"
133 destinationDirectory = base.libsDirectory
134 }
135
136 artifacts {
137 archives(datapackZip)
138 }
139}