Skip to content

Commit

Permalink
update neoforge and mdg
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhowser1 committed Oct 29, 2024
1 parent 7b5934c commit 4a87ab2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 25 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
26 changes: 3 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -60,20 +46,14 @@ 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
}

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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit 4a87ab2

Please sign in to comment.