50 lines
1.2 KiB
Groovy
50 lines
1.2 KiB
Groovy
|
plugins {
|
||
|
id 'multiloader-loader'
|
||
|
id 'net.neoforged.moddev'
|
||
|
}
|
||
|
|
||
|
neoForge {
|
||
|
version = neoforge_version
|
||
|
// Automatically enable neoforge AccessTransformers if the file exists
|
||
|
def at = project(':common').file('src/main/resources/META-INF/accesstransformer.cfg')
|
||
|
if (at.exists()) {
|
||
|
accessTransformers.add(at.absolutePath)
|
||
|
}
|
||
|
parchment {
|
||
|
minecraftVersion = parchment_minecraft
|
||
|
mappingsVersion = parchment_version
|
||
|
}
|
||
|
runs {
|
||
|
configureEach {
|
||
|
systemProperty('neoforge.enabledGameTestNamespaces', mod_id)
|
||
|
ideName = "NeoForge ${it.name.capitalize()} (${project.path})" // Unify the run config names with fabric
|
||
|
}
|
||
|
client {
|
||
|
client()
|
||
|
}
|
||
|
data {
|
||
|
data()
|
||
|
}
|
||
|
server {
|
||
|
server()
|
||
|
}
|
||
|
}
|
||
|
mods {
|
||
|
"${mod_id}" {
|
||
|
sourceSet sourceSets.main
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
||
|
|
||
|
repositories {
|
||
|
maven {
|
||
|
url = "https://api.modrinth.com/maven"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation("org.embeddedt:embeddium-1.21:1.0.8-beta.348+mc1.21")
|
||
|
implementation "maven.modrinth:sodium:mc1.21-0.6.0-beta.2-neoforge"
|
||
|
}
|