Fix DataGen in Neoforge 1.21.1

This commit is contained in:
MJ 2025-09-01 00:07:55 +05:30 committed by GitHub
parent 4cf41c9b61
commit fa6d66835c
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()