49 lines
1.3 KiB
Groovy
49 lines
1.3 KiB
Groovy
plugins {
|
|
id 'multiloader-loader'
|
|
id 'fabric-loom'
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url = "https://api.modrinth.com/maven"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:${minecraft_version}"
|
|
mappings loom.layered {
|
|
officialMojangMappings()
|
|
parchment("org.parchmentmc.data:parchment-${parchment_minecraft}:${parchment_version}@zip")
|
|
}
|
|
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
|
|
|
|
modImplementation "maven.modrinth:modmenu:11.0.0"
|
|
modImplementation "maven.modrinth:sodium:mc1.21-0.5.11"
|
|
modImplementation "maven.modrinth:sodium:mc1.21-0.6.0-beta.2-fabric"
|
|
modImplementation "maven.modrinth:vulkanmod:0.4.9-fabric,1.21"
|
|
}
|
|
|
|
loom {
|
|
def aw = project(':common').file("src/main/resources/${mod_id}.accesswidener")
|
|
if (aw.exists()) {
|
|
accessWidenerPath.set(aw)
|
|
}
|
|
mixin {
|
|
defaultRefmapName.set("${mod_id}.refmap.json")
|
|
}
|
|
runs {
|
|
client {
|
|
client()
|
|
setConfigName('Fabric Client')
|
|
ideConfigGenerated(true)
|
|
runDir('runs/client')
|
|
}
|
|
server {
|
|
server()
|
|
setConfigName('Fabric Server')
|
|
ideConfigGenerated(true)
|
|
runDir('runs/server')
|
|
}
|
|
}
|
|
} |