Merge pull request #101 from MJPC83/fix-datagen

Fix DataGen for Neoforge 1.21.1
This commit is contained in:
Jared 2025-08-31 17:02:23 -04:00 committed by GitHub
commit a4a738da53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,11 @@ neoForge {
}
data {
data()
// DataGen can be run by - "./gradlew :neoforge:runData" in Terminal.
// 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()
}
server {
server()
@ -36,4 +41,4 @@ neoForge {
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
sourceSets.main.resources { srcDir 'src/generated/resources' }