+94
-40
build.gradle.kts
+94
-40
build.gradle.kts
···
1
1
plugins {
2
-
id("fabric-loom") version "1.10-SNAPSHOT"
3
2
id("maven-publish")
4
3
kotlin("jvm") version libs.versions.kotlin
4
+
alias(libs.plugins.cloche)
5
5
}
6
6
7
-
val minecraft_version = "1.20.1"
8
-
9
-
version = "1.0.0"
10
-
group = "xyz.naomieow.asbestos"
11
-
12
7
repositories {
8
+
cloche {
9
+
librariesMinecraft()
10
+
mavenNeoforged()
11
+
mavenFabric()
12
+
main()
13
+
}
13
14
maven("https://maven.wispforest.io")
14
15
maven("https://maven.kosmx.dev/")
15
16
maven("https://maven.ladysnake.org/releases")
···
19
20
maven("https://maven.isxander.dev/releases")
20
21
}
21
22
22
-
dependencies {
23
-
minecraft("com.mojang:minecraft:${minecraft_version}")
24
-
mappings(loom.officialMojangMappings())
23
+
version = "1.0.0"
24
+
group = "xyz.naomieow.asbestos"
25
25
26
-
// fabric stuff
27
-
modImplementation(libs.fabric.kotlin)
28
-
modImplementation(libs.fabric.loader)
29
-
modImplementation(libs.fabric.api)
26
+
cloche {
27
+
minecraftVersion = "1.20.1"
30
28
31
-
// kritter
32
-
modCompileOnly(libs.kritter)
33
-
modImplementation(libs.fabric.kritter)?.let(::include)
29
+
metadata {
30
+
modId = "asbestos"
31
+
name = "Carcinogenic Fibrous Silicate"
32
+
description = "Adds Asbestos and all of it's consequences"
33
+
license = "Polyform Shield 1.0.0"
34
+
icon = "assets/asbestos/icon.png"
34
35
35
-
// yacl
36
-
modImplementation(libs.fabric.yacl)
36
+
custom(buildMap {
37
+
put("cardinal-components", listOf("asbestos:mesothelioma"))
38
+
})
37
39
38
-
// Cardinal Components API
39
-
modImplementation(libs.cca.base)?.let(::include)
40
-
modImplementation(libs.cca.entity)?.let(::include)
40
+
author("Naomi Roberts")
41
+
}
41
42
42
-
// modmenu
43
-
modImplementation(libs.fabric.modmenu)
44
-
}
43
+
singleTarget {
44
+
fabric {
45
+
loaderVersion = libs.versions.fabric.loader
45
46
46
-
tasks {
47
-
processResources {
48
-
val props = buildMap {
49
-
put("version", project.version)
50
-
put("minecraft_version", minecraft_version)
51
-
put("loader_version", "0.16.9")
52
-
}
47
+
includedClient()
53
48
54
-
props.forEach(inputs::property)
49
+
runs {
50
+
server()
51
+
client()
52
+
}
55
53
56
-
filesMatching("fabric.mod.json") { expand(props) }
57
-
}
54
+
dependencies {
55
+
// fabric stuff
56
+
modImplementation(libs.fabric.kotlin)
57
+
modImplementation(libs.fabric.loader)
58
+
modImplementation(libs.fabric.api)
58
59
59
-
java {
60
-
withSourcesJar()
61
-
}
60
+
// kritter
61
+
modCompileOnly(libs.kritter)
62
+
modImplementation(libs.fabric.kritter)
63
+
include(libs.fabric.kritter)
64
+
65
+
// yacl
66
+
modImplementation(libs.fabric.yacl)
62
67
63
-
jar {
64
-
from("LICENSE") {
65
-
rename { "${it}_${base.archivesName}"}
68
+
// Cardinal Components API
69
+
modImplementation(libs.cca.base)
70
+
include(libs.cca.base)
71
+
modImplementation(libs.cca.entity)
72
+
include(libs.cca.entity)
73
+
74
+
// modmenu
75
+
modImplementation(libs.fabric.modmenu)
76
+
}
77
+
78
+
metadata {
79
+
entrypoint("main") {
80
+
value = "xyz.naomieow.asbestos.AsbestosMod"
81
+
adapter = "kotlin"
82
+
}
83
+
entrypoint("client") {
84
+
value = "xyz.naomieow.asbestos.AsbestosModClient"
85
+
adapter = "kotlin"
86
+
}
87
+
entrypoint("cardinal-components-entity") {
88
+
value = "xyz.naomieow.asbestos.AsbestosMod"
89
+
adapter = "kotlin"
90
+
}
91
+
entrypoint("modmenu") {
92
+
value = "xyz.naomieow.asbestos.config.ModMenuIntegration"
93
+
adapter = "kotlin"
94
+
}
95
+
}
66
96
}
67
97
}
68
98
}
99
+
//
100
+
//tasks {
101
+
// processResources {
102
+
// val props = buildMap {
103
+
// put("version", project.version)
104
+
// put("minecraft_version", minecraft_version)
105
+
// put("loader_version", "0.16.9")
106
+
// }
107
+
//
108
+
// props.forEach(inputs::property)
109
+
//
110
+
// filesMatching("fabric.mod.json") { expand(props) }
111
+
// }
112
+
//
113
+
// java {
114
+
// withSourcesJar()
115
+
// }
116
+
//
117
+
// jar {
118
+
// from("LICENSE") {
119
+
// rename { "${it}_${base.archivesName}"}
120
+
// }
121
+
// }
122
+
//}
+1
-5
gradle.properties
+1
-5
gradle.properties
+12
-8
libs.versions.toml
+12
-8
libs.versions.toml
···
1
1
[versions]
2
+
# Common
3
+
cloche = "0.10.13"
2
4
kotlin = "2.1.0"
3
-
fabric-kotlin = "1.13.0+kotlin.2.1.0"
4
-
fabric-loader= "0.16.9"
5
-
fabric-api = "0.89.3+1.20.1"
6
-
fabric-modmenu = "7.2.2"
7
-
fabric-yacl = "3.6.1+1.20.1-fabric"
8
5
cca = "5.2.2"
9
6
kritter = "0.1.1+1.20.1"
7
+
# Fabric
8
+
fabric-kotlin = "1.13.0+kotlin.2.1.0"
9
+
fabric-loader= "0.16.14"
10
+
fabric-api = "0.92.6+1.20.1"
11
+
fabric-modmenu = "7.2.2"
12
+
fabric-yacl = "3.6.6+1.20.1-fabric"
10
13
11
14
[libraries]
12
-
# Common Deps
15
+
# Common
13
16
cca-base = { module = "dev.onyxstudios.cardinal-components-api:cardinal-components-base", version.ref = "cca" }
14
17
cca-entity = { module = "dev.onyxstudios.cardinal-components-api:cardinal-components-entity", version.ref = "cca" }
15
18
kritter = { module = "uwu.serenity.kritter:kritter-common", version.ref = "kritter" }
16
-
# Fabric Deps
19
+
# Fabric
17
20
fabric-kotlin = { module = "net.fabricmc:fabric-language-kotlin", version.ref = "fabric-kotlin" }
18
21
fabric-loader = { module = "net.fabricmc:fabric-loader", version.ref = "fabric-loader" }
19
22
fabric-api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fabric-api" }
···
21
24
fabric-modmenu = { module = "com.terraformersmc:modmenu", version.ref = "fabric-modmenu" }
22
25
fabric-yacl = { module = "dev.isxander:yet-another-config-lib", version.ref = "fabric-yacl" }
23
26
24
-
[plugins]
27
+
[plugins]
28
+
cloche = { id = "earth.terrarium.cloche", version.ref = "cloche" }
+1
-3
settings.gradle.kts
+1
-3
settings.gradle.kts
-53
src/main/resources/fabric.mod.json
-53
src/main/resources/fabric.mod.json
···
1
-
{
2
-
"schemaVersion": 1,
3
-
"id": "asbestos",
4
-
"version": "${version}",
5
-
"name": "Asbestos",
6
-
"description": "Adds Asbestos and all of it's consequences",
7
-
"authors": [
8
-
"naomieow"
9
-
],
10
-
"contact": {
11
-
"website": "https://gitlab.com/naomieow/Asbestos",
12
-
"repo": "https://gitlab.com/naomieow/Asbestos"
13
-
},
14
-
"license": "LGPL-3.0",
15
-
"icon": "assets/asbestos/icon.png",
16
-
"environment": "*",
17
-
"entrypoints": {
18
-
"main": [
19
-
{
20
-
"value": "xyz.naomieow.asbestos.AsbestosMod",
21
-
"adapter": "kotlin"
22
-
}
23
-
],
24
-
"client": [
25
-
{
26
-
"value": "xyz.naomieow.asbestos.AsbestosModClient",
27
-
"adapter": "kotlin"
28
-
}
29
-
],
30
-
"cardinal-components-entity": [
31
-
{
32
-
"value": "xyz.naomieow.asbestos.AsbestosMod",
33
-
"adapter": "kotlin"
34
-
}
35
-
],
36
-
"modmenu": [
37
-
{
38
-
"value": "xyz.naomieow.asbestos.config.ModMenuIntegration",
39
-
"adapter": "kotlin"
40
-
}
41
-
]
42
-
},
43
-
"custom": {
44
-
"cardinal-components": [
45
-
"asbestos:mesothelioma"
46
-
]
47
-
},
48
-
"depends": {
49
-
"fabricloader": ">=${loader_version}",
50
-
"fabric": "*",
51
-
"minecraft": "${minecraft_version}"
52
-
}
53
-
}