From 35aab8b17aec901430c773812a285f2d37c9bb17 Mon Sep 17 00:00:00 2001 From: LexManos Date: Tue, 25 Jun 2019 18:03:51 -0700 Subject: [PATCH] Split userdev data entry point into it's own provider to fix duplicate mod issue. --- build.gradle | 18 ++++++++++++++++++ src/main/resources/META-INF/mods.toml | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index f693e19..1978015 100644 --- a/build.gradle +++ b/build.gradle @@ -64,6 +64,24 @@ minecraft { } } } + + data { + workingDirectory project.file('run') + + // Recommended logging data for a userdev environment + property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' + + // Recommended logging level for the console + property 'forge.logging.console.level', 'debug' + + args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/') + + mods { + examplemod { + source sourceSets.main + } + } + } } } diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 8b35f0c..c1392eb 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -42,7 +42,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn # Does this dependency have to exist - if not, ordering below must be specified mandatory=true #mandatory # The version range of the dependency - versionRange="[26,)" #mandatory + versionRange="[27,)" #mandatory # An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory ordering="NONE" # Side this dependency is applied on - BOTH, CLIENT or SERVER @@ -51,6 +51,6 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn [[dependencies.examplemod]] modId="minecraft" mandatory=true - versionRange="[1.14.2]" + versionRange="[1.14.3]" ordering="NONE" side="BOTH" \ No newline at end of file