diff --git a/CHANGELOG.md b/CHANGELOG.md index 336c6fef..7436b878 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -238,6 +238,7 @@ # 1.5.0 +- Updated NeoForge from 21.1.36 to 21.1.73 - Moved Gene requirements from the Gene constructor to a separate datapack system, located in `/data/____/geneticsresequenced/geme_requirements/` - Combined the Gene commands to be arguments of `/geneticsresequenced gene` - Localized into Simplified Chinese, thanks to @shenyx110! (#31) diff --git a/build.gradle b/build.gradle index 086b5e2a..535d8a2b 100644 --- a/build.gradle +++ b/build.gradle @@ -4,53 +4,39 @@ plugins { id 'java-library' id 'idea' id 'maven-publish' - id 'net.neoforged.moddev' version '1.0.0' + id 'net.neoforged.moddev' version '1.0.11' - // Adds the Kotlin Gradle plugin id 'org.jetbrains.kotlin.jvm' version '2.0.0' - // OPTIONAL Kotlin Serialization plugin - //id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.0' } version = mod_version group = mod_group_id base.archivesName = "${mod_id}-${mc_version}" -// Mojang ships Java 21 to end users in 1.20.5+, so your mod should target Java 21. java.toolchain.languageVersion = JavaLanguageVersion.of(21) compileKotlin.compilerOptions.jvmTarget = JvmTarget.JVM_21 -// Default run configurations. -// These can be tweaked, removed, or duplicated as needed. neoForge { - // NeoForge version + version = neo_version - // Add Parchment parameter mappings parchment { mappingsVersion = project.parchment_mappings_version minecraftVersion = project.parchment_minecraft_version } - // This line is optional. Access Transformers are automatically detected + validateAccessTransformers = true accessTransformers = project.files('src/main/resources/META-INF/accesstransformer.cfg') runs { configureEach { - // Recommended logging data for a userdev environment - // The markers can be added/remove as needed separated by commas. - // "SCAN": For mods scan. - // "REGISTRIES": For firing of registry events. - // "REGISTRYDUMP": For getting the contents of all registries. systemProperty 'forge.logging.markers', 'REGISTRIES' - // Recommended logging level for the console logLevel = org.slf4j.event.Level.DEBUG } client { client() - // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id } @@ -60,9 +46,6 @@ neoForge { systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id } - // This run config launches GameTestServer and runs all registered gametests, then exits. - // By default, the server will crash when no gametests are provided. - // The gametest system is also enabled by default for other run configs under the /test command. gameTestServer { type = "gameTestServer" systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id @@ -70,10 +53,7 @@ neoForge { data { data() - // example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it - // workingDirectory project.file('run-data') - // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. programArguments.addAll '--mod', project.mod_id, '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath() } } diff --git a/gradle.properties b/gradle.properties index b7eca644..6309a4f1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ parchment_mappings_version=2024.07.28 minecraft_version=1.21.1 minecraft_version_range=[1.21,1.22) -neo_version=21.1.36 +neo_version=21.1.73 neo_version_range=[21.0,) loader_version_range=[5.3,) mapping_channel=official diff --git a/settings.gradle b/settings.gradle index cb5265bc..fd1434c1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,5 +7,5 @@ pluginManagement { } plugins { - id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0' + id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0' } \ No newline at end of file