-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.fabric.gradle.kts
More file actions
74 lines (68 loc) · 1.87 KB
/
build.fabric.gradle.kts
File metadata and controls
74 lines (68 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id("mod-platform")
id("fabric-loom")
}
platform {
loader = "fabric"
dependencies {
required("minecraft") {
versionRange = prop("deps.minecraft")
}
required("fabric-api") {
slug("fabric-api")
versionRange = ">=${prop("deps.fabric-api")}"
}
required("fabricloader") {
versionRange = ">=${libs.fabric.loader.get().version}"
}
optional("modmenu") {}
}
}
loom {
accessWidenerPath = rootProject.file("src/main/resources/aw/${stonecutter.current.version}.accesswidener")
runs.named("client") {
client()
ideConfigGenerated(true)
runDir = "run/"
environment = "client"
programArgs("--username=Dev")
configName = "Fabric Client"
}
runs.named("server") {
server()
ideConfigGenerated(true)
runDir = "run/"
environment = "server"
configName = "Fabric Server"
}
}
fabricApi {
configureDataGeneration {
outputDirectory = file("${rootDir}/versions/datagen/${stonecutter.current.version.split("-")[0]}/src/main/generated")
client = true
}
}
repositories {
mavenCentral()
strictMaven("https://maven.terraformersmc.com/", "com.terraformersmc") { name = "TerraformersMC" }
strictMaven("https://api.modrinth.com/maven", "maven.modrinth") { name = "Modrinth" }
}
dependencies {
minecraft("com.mojang:minecraft:${prop("deps.minecraft")}")
mappings(
loom.layered {
officialMojangMappings()
if (hasProperty("deps.parchment")) parchment("org.parchmentmc.data:parchment-${prop("deps.parchment")}@zip")
})
modImplementation(libs.fabric.loader)
implementation(libs.moulberry.mixinconstraints)
include(libs.moulberry.mixinconstraints)
modImplementation("net.fabricmc.fabric-api:fabric-api:${prop("deps.fabric-api")}")
modLocalRuntime("com.terraformersmc:modmenu:${prop("deps.modmenu")}")
}
stonecutter {
replacements.string(current.parsed >= "1.21.11") {
replace("ResourceLocation", "Identifier")
replace("location()", "identifier()")
}
}