Update to 1.20.4

This commit is contained in:
Exopandora
2023-12-09 14:39:09 +01:00
parent 1b715f1ac3
commit bfbf99d2c7
12 changed files with 116 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'eclipse'
id 'net.minecraftforge.gradle' version '6.0.+'
id 'net.minecraftforge.gradle' version '[6.0.16,6.2)'
id 'me.hypherionmc.cursegradle' version '2.+'
}
@@ -17,61 +17,38 @@ minecraft {
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
configureEach {
workingDirectory project.file('run')
}
client {
taskName "${project.name}Client"
mods {
"${mod_id}" {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
taskName "${project.name}Server"
mods {
"${mod_id}" {
source sourceSets.main
}
}
}
gameTestServer {
workingDirectory project.file('run')
taskName "${project.name}GameTest"
mods {
"${mod_id}" {
source sourceSets.main
}
}
property 'forge.enabledGameTestNamespaces', mod_id
}
data {
workingDirectory project.file('run')
workingDirectory project.file('run-data')
taskName "${project.name}Data"
args '--mod', "${mod_id}", '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
"${mod_id}" {
source sourceSets.main
}
}
args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
}
}
}
sourceSets.main.resources.srcDir 'src/generated/resources'
sourceSets.main.resources { srcDir 'src/generated/resources' }
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
}
jar {
tasks.named('jar', Jar).configure {
manifest {
attributes([
"Specification-Title": "${mod_id}",
@@ -86,7 +63,7 @@ jar {
}
}
processResources {
tasks.named('processResources', ProcessResources).configure {
outputs.upToDateWhen {
false
}