diff options
author | hackthetime <l4bg0jb7@duck.com> | 2023-10-30 12:10:28 +0100 |
---|---|---|
committer | hackthetime <l4bg0jb7@duck.com> | 2023-10-30 12:10:28 +0100 |
commit | 34eabc9c41cb4d038ac4feb3b2d08bfad013652e (patch) | |
tree | 1dadf709e38600187a2793c7deef1e243609693b | |
parent | eb691f4612a95aeb61bd947df169cb34ec69f165 (diff) | |
download | BBsentials-34eabc9c41cb4d038ac4feb3b2d08bfad013652e.tar.gz BBsentials-34eabc9c41cb4d038ac4feb3b2d08bfad013652e.tar.bz2 BBsentials-34eabc9c41cb4d038ac4feb3b2d08bfad013652e.zip |
added MoulConfig to 1.8 build.gradle.kts
-rw-r--r-- | forge/build.gradle.kts | 4 | ||||
-rw-r--r-- | forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/forge/build.gradle.kts b/forge/build.gradle.kts index ddcda8b..f222c1d 100644 --- a/forge/build.gradle.kts +++ b/forge/build.gradle.kts @@ -51,6 +51,7 @@ repositories { maven("https://repo.spongepowered.org/maven/") // If you don't want to log in with your real minecraft account, remove this line maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1") + maven("https://maven.notenoughupdates.org/releases/") } @@ -68,6 +69,8 @@ dependencies { shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT") { isTransitive = false } + shadowImpl("org.notenoughupdates.moulconfig:MoulConfig:1.3.0") +// testMod("org.notenoughupdates.moulconfig:MoulConfig:1.3.0:test") annotationProcessor("org.spongepowered:mixin:0.8.5-SNAPSHOT") // If you don't want to log in with your real minecraft account, remove this line @@ -121,6 +124,7 @@ tasks.shadowJar { destinationDirectory.set(layout.buildDirectory.dir("badjars")) archiveClassifier.set("all-dev") configurations = listOf(shadowImpl) + relocate("io.github.moulberry.moulconfig", "de.hype.bbsentials.deps.moulconfig") doLast { configurations.forEach { println("Copying jars into mod: ${it.files}") diff --git a/forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java b/forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java index ab63954..ca01526 100644 --- a/forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java +++ b/forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java @@ -2,6 +2,8 @@ package de.hype.bbsentials.forge; import de.hype.bbsentials.common.client.BBsentials; import de.hype.bbsentials.common.mclibraries.EnvironmentCore; +import io.github.moulberry.moulconfig.gui.MoulConfigEditor; +import io.github.moulberry.moulconfig.processor.MoulConfigProcessor; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.EntityJoinWorldEvent; import net.minecraftforge.fml.common.Mod; |