diff --git a/build.gradle b/build.gradle index a86d2bf9..85820a93 100644 --- a/build.gradle +++ b/build.gradle @@ -53,6 +53,7 @@ dependencies { include "com.minelittlepony:Kirin:${project.kirin_version}" modImplementation "com.minelittlepony:HDSkins:${project.hd_skins_version}" + modImplementation "io.github.prospector.modmenu:ModMenu:1.6.2-93" } // diff --git a/src/main/java/com/minelittlepony/client/modmenu/MineLPModMenuFactory.java b/src/main/java/com/minelittlepony/client/modmenu/MineLPModMenuFactory.java new file mode 100644 index 00000000..8ed70ab9 --- /dev/null +++ b/src/main/java/com/minelittlepony/client/modmenu/MineLPModMenuFactory.java @@ -0,0 +1,20 @@ +package com.minelittlepony.client.modmenu; + +import com.minelittlepony.client.gui.GuiPonySettings; +import io.github.prospector.modmenu.api.ModMenuApi; +import net.minecraft.client.gui.screen.Screen; + +import java.util.function.Function; + +public class MineLPModMenuFactory implements ModMenuApi { + + @Override + public String getModId() { + return "minelp"; + } + + @Override + public Function getConfigScreenFactory() { + return screen -> new GuiPonySettings(); + } +} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index f151fe47..610ef9d9 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -18,6 +18,9 @@ "entrypoints": { "client": [ "com.minelittlepony.client.FabMod" + ], + "modmenu": [ + "com.minelittlepony.client.modmenu.MineLPModMenuFactory" ] }, "mixins": [