diff options
| author | Flanks255 <32142731+Flanks255@users.noreply.github.com> | 2020-10-08 16:03:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 14:03:41 -0700 |
| commit | e686486665182ba1f384202247703de8001cd46c (patch) | |
| tree | a724aef556d5598c0cf70762358b12c1b141d54e /build.gradle | |
| parent | 5dd948508a57246668a8fd764bec4b02efb7825a (diff) | |
Additions to the mdk build.gradle to accommodate datagens. (#7398)
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 321d61e..ce1eb64 100644 --- a/build.gradle +++ b/build.gradle @@ -75,7 +75,8 @@ minecraft { // Recommended logging level for the console property 'forge.logging.console.level', 'debug' - args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/') + // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. + args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') mods { examplemod { @@ -86,6 +87,9 @@ minecraft { } } +// Include resources generated by data generators. +sourceSets.main.resources { srcDir 'src/generated/resources' } + dependencies { // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. |
