From d99467d953441daed5b66c9182d4c7c58fe441f5 Mon Sep 17 00:00:00 2001 From: Hedzer Kuijlman Date: Mon, 7 Apr 2025 09:18:14 +0200 Subject: [PATCH] Added ModMenu as (optional) dependency --- build.gradle | 11 +++++------ gradle.properties | 4 +++- src/main/resources/fabric.mod.json | 7 +++++-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 2cc49bd..9160502 100644 --- a/build.gradle +++ b/build.gradle @@ -11,11 +11,10 @@ base { } repositories { - // Add repositories to retrieve artifacts from in here. - // You should only use this when depending on other mods because - // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. - // See https://docs.gradle.org/current/userguide/declaring_repositories.html - // for more information about repositories. + maven { + name = "Terraformers" + url = "https://maven.terraformersmc.com/" + } } loom { @@ -44,7 +43,7 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - + modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}") } processResources { diff --git a/gradle.properties b/gradle.properties index 4f61974..01327ce 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,4 +14,6 @@ maven_group=wtf.hak.survivalfabric archives_base_name=survivalfabric # Dependencies -fabric_version=0.119.5+1.21.5 \ No newline at end of file +fabric_version=0.119.5+1.21.5 + +modmenu_version=14.0.0-rc.2 \ No newline at end of file diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index ea0fb69..ba6d9a3 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -38,7 +38,10 @@ "java": ">=21", "fabric-api": "*" }, - "suggests": { - "another-mod": "*" + "optional": { + "modmenu": "*" + }, + "custom": { + "modmenu:api": "wtf.hak.survivalfabric.modmenu.ModMenuIntegration" } } \ No newline at end of file