Skip to content

Commit

Permalink
ModMenu and Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyMialee committed Dec 24, 2021
1 parent a2e1bb3 commit f75f906
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 7 deletions.
48 changes: 45 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

<details>
<summary><b>Feature List</b></summary><br>
Removes the anvil experience limit. (Enabled by default)<br>
<img src="https://github.com/AmyMialee/no-enchant-cap/raw/main/assets/anvilXPCap.png"><br><br>
Allows any enchantment on any item. (Enabled by default)<br>
<img src="https://github.com/AmyMialee/no-enchant-cap/raw/main/assets/incompatibleItem.png"><br><br>
Enchantments over X (10) will use number levels.<br>
<img src="https://github.com/AmyMialee/no-enchant-cap/raw/main/assets/numberLevels.png"><br><br>
Removes all limits on the /enchant command.<br>
<img src="https://github.com/AmyMialee/no-enchant-cap/raw/main/assets/enchantCommand.png"><br><br>
Using /enchant you can add negative levels. (Likely won't function as intended)<br>
<img src="https://github.com/AmyMialee/no-enchant-cap/raw/main/assets/negativeLevels.png"><br><br>
Allow incompatible enchantments to be applied together. (Disabled by default)<br>
<img src="https://github.com/AmyMialee/no-enchant-cap/raw/main/assets/mergeIncompatible.png"><br><br>
Allows combining above typical enchantment limits. (Disabled by default)<br>
<img src="https://github.com/AmyMialee/no-enchant-cap/raw/main/assets/anvilLevelCap.png"><br><br>
</details>

<table align="center">
<tr>
<th><b>Join my Discord</b></th>
<th><b>Find the mod on Curseforge!</b></th>
<th><b>Find the mod on Modrinth!</b></th>
</tr>
<tr>
<th>
<a href="https://discord.gg/P4dUsxv6An">
<img src="https://cdn.discordapp.com/attachments/793182374410059887/924000460292104282/3437c10597c1526c3dbd98c737c2bcae.svg" width="150" height="150">
</a>
</th>
<th>
<a href="https://www.curseforge.com/minecraft/mc-mods/no-enchant-cap">
<img src="https://cdn.discordapp.com/attachments/793182374410059887/923990008543711282/anvil.svg" width="150" height="150">
</a>
</th>
<th>
<a href="https://modrinth.com/mod/no-enchant-cap">
<img src="https://docs.modrinth.com/img/logo.svg" width="150" height="150">
</a>
</th>
</tr>
</table>
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ group = project.maven_group

repositories {
maven { url "https://maven.shedaniel.me/" }
maven { url = "https://maven.terraformersmc.com/releases/" }
}

dependencies {
Expand All @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions src/main/java/amymialee/noenchantcap/EnchantModMenu.java
Original file line number Diff line number Diff line change
@@ -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();
}
}
1 change: 1 addition & 0 deletions src/main/java/amymialee/noenchantcap/NoEnchantCap.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/assets/noenchantcap/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -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."
}
9 changes: 6 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@
"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",
"environment": "*",
"entrypoints": {
"main": [
"amymialee.noenchantcap.NoEnchantCap"
],
"modmenu": [
"amymialee.noenchantcap.EnchantModMenu"
]
},
"mixins": [
Expand Down

0 comments on commit f75f906

Please sign in to comment.