From 34eabc9c41cb4d038ac4feb3b2d08bfad013652e Mon Sep 17 00:00:00 2001 From: hackthetime Date: Mon, 30 Oct 2023 12:10:28 +0100 Subject: added MoulConfig to 1.8 build.gradle.kts --- forge/build.gradle.kts | 4 ++++ forge/src/main/java/de/hype/bbsentials/forge/ExampleMod.java | 2 ++ 2 files changed, 6 insertions(+) (limited to 'forge') 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; -- cgit