36 lines
882 B
Groovy
36 lines
882 B
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'eclipse'
|
|
id 'net.neoforged.gradle.userdev' version '7.0.152'
|
|
}
|
|
|
|
version = '1.0'
|
|
group = 'com.yourname.modid'
|
|
base.archivesName = "modid"
|
|
|
|
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
|
|
|
|
def at_file = rootProject.file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
if (at_file.exists()) minecraft.accessTransformers.file at_file
|
|
|
|
runs {
|
|
configureEach {
|
|
systemProperty 'forge.logging.markers', 'REGISTRIES'
|
|
systemProperty 'forge.logging.console.level', 'debug'
|
|
modSource project.sourceSets.main
|
|
}
|
|
|
|
client {}
|
|
server {}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'net.neoforged:neoforge:20.6.117'
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
|
|
}
|
|
|
|
apply from: 'mcreator.gradle'
|