MultiLoader-Template/fabric/build.gradle
Jared 040ca2e79d Replace (Vanilla|Neo)Gradle with ModDevGradle, add ParchmentMC support
https://github.com/neoforged/ModDevGradle
ModDevGradle is a alternative to NeoGradle that in my experience is faster and provides a better development experience.
MDG also offers an easy 'vanilla' mode, so it has replaced VanillaGradle as well.
2024-06-25 01:48:34 -06:00

37 lines
1.0 KiB
Groovy

plugins {
id 'multiloader-loader'
id 'fabric-loom'
}
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}"
}
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')
}
}
}