From f75f906194cd165c9e78ce6e18029b9dfd1e31b1 Mon Sep 17 00:00:00 2001
From: AmyMialee <10999535+AmyMialee@users.noreply.github.com>
Date: Fri, 24 Dec 2021 22:53:42 +0000
Subject: [PATCH] ModMenu and Readme
---
README.md | 48 +++++++++++++++++--
build.gradle | 2 +
gradle.properties | 3 +-
.../noenchantcap/EnchantModMenu.java | 12 +++++
.../amymialee/noenchantcap/NoEnchantCap.java | 1 +
.../assets/noenchantcap/lang/en_us.json | 9 ++++
src/main/resources/fabric.mod.json | 9 ++--
7 files changed, 77 insertions(+), 7 deletions(-)
create mode 100644 src/main/java/amymialee/noenchantcap/EnchantModMenu.java
create mode 100644 src/main/resources/assets/noenchantcap/lang/en_us.json
diff --git a/README.md b/README.md
index bbe00bc..98bde2c 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,46 @@
-# no-enchantment-cap
+# No Enchant Cap
-More info on the CurseForge page.
-https://www.curseforge.com/minecraft/mc-mods/no-enchant-cap
+No Enchant Cap is a simple mod which changes some features related to enchanting in Minecraft.
+
+
+Feature List
+Removes the anvil experience limit. (Enabled by default)
+
+Allows any enchantment on any item. (Enabled by default)
+
+Enchantments over X (10) will use number levels.
+
+Removes all limits on the /enchant command.
+
+Using /enchant you can add negative levels. (Likely won't function as intended)
+
+Allow incompatible enchantments to be applied together. (Disabled by default)
+
+Allows combining above typical enchantment limits. (Disabled by default)
+
+
+
+
+
+ Join my Discord |
+ Find the mod on Curseforge! |
+ Find the mod on Modrinth! |
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 0a1d936..395ddf4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,6 +8,7 @@ group = project.maven_group
repositories {
maven { url "https://maven.shedaniel.me/" }
+ maven { url = "https://maven.terraformersmc.com/releases/" }
}
dependencies {
@@ -16,6 +17,7 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}"
+ modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
}
processResources {
diff --git a/gradle.properties b/gradle.properties
index 16fbdac..1cfadfb 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -5,9 +5,10 @@ minecraft_version=1.18.1
yarn_mappings=1.18.1+build.11
loader_version=0.12.12
# Mod Properties
-mod_version=1.18.1-fabric-2.0.0
+mod_version=1.18.1-fabric-2.0.1
maven_group=amymialee
archives_base_name=noenchantcap
# Dependencies
fabric_version=0.45.0+1.18
cloth_config_version=6.1.48
+modmenu_version=3.0.1
diff --git a/src/main/java/amymialee/noenchantcap/EnchantModMenu.java b/src/main/java/amymialee/noenchantcap/EnchantModMenu.java
new file mode 100644
index 0000000..ad2e14f
--- /dev/null
+++ b/src/main/java/amymialee/noenchantcap/EnchantModMenu.java
@@ -0,0 +1,12 @@
+package amymialee.noenchantcap;
+
+import com.terraformersmc.modmenu.api.ConfigScreenFactory;
+import com.terraformersmc.modmenu.api.ModMenuApi;
+import me.shedaniel.autoconfig.AutoConfig;
+
+public class EnchantModMenu implements ModMenuApi {
+ @Override
+ public ConfigScreenFactory> getModConfigScreenFactory() {
+ return parent -> AutoConfig.getConfigScreen(EnchantModConfig.class, parent).get();
+ }
+}
diff --git a/src/main/java/amymialee/noenchantcap/NoEnchantCap.java b/src/main/java/amymialee/noenchantcap/NoEnchantCap.java
index bbd214b..33ba5b5 100644
--- a/src/main/java/amymialee/noenchantcap/NoEnchantCap.java
+++ b/src/main/java/amymialee/noenchantcap/NoEnchantCap.java
@@ -5,6 +5,7 @@
import net.fabricmc.api.ModInitializer;
public class NoEnchantCap implements ModInitializer {
+ public static String MODID = "noenchantcap";
public static EnchantModConfig config;
@Override
public void onInitialize() {
diff --git a/src/main/resources/assets/noenchantcap/lang/en_us.json b/src/main/resources/assets/noenchantcap/lang/en_us.json
new file mode 100644
index 0000000..c178d73
--- /dev/null
+++ b/src/main/resources/assets/noenchantcap/lang/en_us.json
@@ -0,0 +1,9 @@
+{
+ "text.autoconfig.no-enchant-cap.title" : "No Enchant Cap Config",
+
+ "text.autoconfig.no-enchant-cap.option.removeAnvilXPLimit" : "Remove anvil experience limit.",
+ "text.autoconfig.no-enchant-cap.option.allowAllEnchantmentCombinations" : "Allow all enchantments to be combined.",
+ "text.autoconfig.no-enchant-cap.option.allowAnyEnchantOnAnyItem" : "Allow any enchantment on any item.",
+ "text.autoconfig.no-enchant-cap.option.removeAnvilLevelLimit" : "Remove anvil enchant level limit.",
+ "text.autoconfig.no-enchant-cap.option.newAnvilLevelLimit" : "New anvil enchant level limit."
+}
\ No newline at end of file
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index 74289aa..1e63d7a 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -3,13 +3,13 @@
"id": "noenchantcap",
"version": "${version}",
"name": "NoEnchantCap",
- "description": "Removes the limit on combining enchantments.",
+ "description": "A simple mod to enhance some aspects of enchanting.",
"authors": [
"AmyMialee"
],
"contact": {
- "homepage": "https://www.curseforge.com/minecraft/mc-mods/no-enchant-cap",
- "issues": "https://github.com/AmyMialee/no-enchantment-cap/issues"
+ "homepage": "https://github.com/AmyMialeeMods/no-enchant-cap",
+ "issues": "https://github.com/AmyMialeeMods/no-enchant-cap/issues"
},
"license": "All-Rights-Reserved",
"icon": "assets/noenchantcap/icon.png",
@@ -17,6 +17,9 @@
"entrypoints": {
"main": [
"amymialee.noenchantcap.NoEnchantCap"
+ ],
+ "modmenu": [
+ "amymialee.noenchantcap.EnchantModMenu"
]
},
"mixins": [