Перейти к содержимому
Mineforgian

Enchant Enhancemen

Modify enchantment mechanics and improvements.

Загрузки
3K
Подписчики
1
Обновлён
11 августа 2026 г.
Лицензия
Apache-2.0

Опубликован 3 апреля 2026 г.

🪄 Enchant Enhancemen

This mod enhances enchantment levels, improves compatibility, and optimizes enchantments.

The mod must be installed on both the client and the server.


✨ Features

All features can be toggled in the mod’s configuration screen.

  • Generate high‑level enchanted books in loot – Find enchanted books with levels above vanilla limits in chests and loot containers.
  • Mobs wear high‑level enchanted armor – Mobs can spawn wearing armor with high‑level enchantments (disabled by default; use with caution).
  • Merge to surpass the enchantment level cap – Use an anvil to combine enchantments beyond vanilla limits.
  • Armor Protection, Blast Protection, Projectile Protection, and Fire Protection coexist – Break vanilla restrictions so multiple protection types can live on one piece.
  • Weapons Sharpness, Smite, and Bane of Arthropods coexist – All three damage enchantments on the same weapon.
  • Trident enchantments – Sharpness, Smite, Bane of Arthropods, Knockback, Fire Aspect, Looting can now be applied to tridents.
  • Axes share weapon enchantments – Axes gain the same enchantment table options as swords.
  • Expanded & compatible bow enchantments – Bows can receive Looting; Mending and Infinity can coexist.
  • Bow Infinity without arrows – With the Infinity enchantment, you can shoot even with zero arrows in your inventory.

📖 Feature Introduction

Generate High‑Level Enchanted Books from Loot

Generates enchanted books with levels higher than vanilla enchantments in chests and other loot containers throughout the world.

Mobs Wear High‑Level Enchanted Armor

Mobs can spawn wearing armor with high‑level enchantments. Default setting is off.
Please use with caution – this mod is designed to let you raise enchantment levels to face powerful foes. If you enable it… well, then why even add the mod?

Merge and Break Enchantment Level Limits

Using an anvil, you can merge enchantments past vanilla level caps. The new cap is controlled by the enchantment level values in the mod configuration.

Coexistence of Armor Protections

Allows armor to ignore vanilla compatibility rules – Blast Protection, Projectile Protection, Fire Protection, and standard Protection can all exist on the same piece.

Coexistence of Weapon Damage Enchantments

Allows weapons to ignore vanilla compatibility rules – Sharpness, Smite, and Bane of Arthropods can all coexist on a single weapon.

Trident Enchantment Expansion

Unlocks Sharpness, Smite, Bane of Arthropods, Knockback, Fire Aspect, and Looting for tridents.

Axe Enchantment Parity

Axes gain access to the full set of weapon enchantments normally restricted to swords.

Bow Enchantment Expansion & Compatibility

Bows can receive the Looting enchantment. Mending and Infinity are allowed to coexist.

Infinite Bow – No Arrows Needed

When a bow has the Infinity enchantment, this feature lets you shoot even without any arrows in your inventory.


Additional Information

Note – In multiplayer, the client automatically synchronises with the server configuration and cannot be changed locally.

  • The update log always contains important information.
  • For suggestions and feedback, please visit GitHub Issues.
  • This project is licensed under the Apache License 2.0.

Ченджлог

1.0.6Релиз1.21.1, 1.21.2, 1.21.3 · 11 августа 2026 г.
  • 调整结构支持双端
1.0.5Релиз1.20.2, 1.20.3, 1.20.4 · 8 июня 2026 г.

Enchant Enhancemen 1.0.5 for 1.20.1-1.20.4

  • fix some bug.
1.0.5Релиз1.21.1, 1.21.2, 1.21.3 · 8 июня 2026 г.

Enchant Enhancemen 1.0.5 for 1.21-1.21.3

一、服务器配置同步修复与完善

概述

修复 v1.0.4 中引入的 ServerPlayerJoinListener 崩溃问题(ConcurrentHashMap.entry.setValue 不支持),并完善配置同步机制。

文件变更

文件 修改
EnchantEnhancement.java 移除内部类 EnchantEnhancementClientEnchantEnhancementServeronInitialize() 通过 ServerLifecycleEvents.SERVER_STARTING 统一处理专用服务器和 LAN 集成服务器初始化;注册 ServerTickEvents.END_SERVER_TICK 驱动延迟同步队列
EnchantEnhancementClient.java 新建 — 独立客户端入口类:注册网络包接收器 + 加载本地配置
fabric.mod.json client entrypoint 增加 EnchantEnhancementClientfabricloader 最低版本 >=0.16.10
ServerPlayerJoinListener.java ENTITY_LOADJOINServerPlayConnectionEvents);40 tick 延迟队列使用 ConcurrentHashMap + Iterator 替代 removeIf;增加 DISCONNECT 清理;新增 syncToAllPlayers() 静态方法;新增 tickPendingSync() 驱动延迟队列
EnchantmentConfig.java syncConfigToAllPlayers() 调用 ServerPlayerJoinListener.syncToAllPlayers() 实现实际推送;syncConfig() 增加 if (isServer) return 防主机自锁;移除 save()load() 中的 isConfigSynced 守卫;新增 saveConfigToFile(generalConfig, enchantmentsConfig) 方法;新增 getDefaultLevels() 方法

二、多人游戏配置 UI 行为优化

概述

多人游戏中配置界面始终可交互,玩家修改后可保存到本地配置文件,但游戏行为仍跟随服务器配置(不修改 EnchantmentConfig 内存值)。

实现原理

ConfigScreen 新增 9 个 UI 本地状态变量(uiMergeHighEnchantments 等),只读模式下所有 UI 修改仅更新本地副本。保存时通过 EnchantmentConfig.saveConfigToFile() 直接写入文件,不修改 EnchantmentConfig 内存值。

行为对照

场景 UI 可操作 修改保存到本地文件 游戏行为跟随
单人游戏 是(更新内存+文件) 本地配置
主机(LAN/集成服务器) 是(更新内存+文件) 主机配置
多人游戏客户端(已同步) (仅写文件) 服务器配置

文件变更

文件 修改
ConfigScreen.java 新增 isReadOnly 标记和 9 个 uiXxx 本地状态变量;UI 始终可交互移除了 isDisabled 对输入框编辑/点击的限制;saveChanges() 根据 isReadOnly 走不同路径(直接写文件 vs 更新内存后保存);handleResetButton()RestoreDefaultsEntry 在只读模式下仅重置 UI 本地状态

三、附魔等级分组视觉优化

  • 分组内展开条目向右缩进 18px
  • 展开条目名称颜色变灰(0xFFAAAAAA
  • 展开条目输入框缩小(64×16 vs 78×18)

文件变更

文件 修改
ConfigScreen.java EnchantmentEntry 新增 isIndented 属性;render 方法根据缩进状态调整偏移、颜色、输入框尺寸;updateListContent() 中展开的分组条目传入 isIndented=true

四、依赖与环境修复

文件 修改
gradle.properties Fabric Loader 0.18.50.19.3;版本号 1.0.41.0.5
1.0.4Бета1.20.2, 1.20.3, 1.20.4 · 7 июня 2026 г.

Enchant Enhancemen 1.0.4 for 1.20.1-1.20.4

一、服务器配置同步(核心功能)

概述

服务器/主机修改配置后自动向所有在线玩家同步;玩家进入多人游戏时自动获取主机配置,本地修改不生效。

文件变更

文件 修改
EnchantEnhancement.java onInitialize() 中通过 ServerLifecycleEvents.SERVER_STARTING 统一处理专用服务器和 LAN 集成服务器的初始化
EnchantEnhancementClient.java 新建 — 客户端入口:注册网络包接收器 + 加载本地配置
EnchantEnhancementServer.java 已删除 — 逻辑已合并到主入口
fabric.mod.json client 增加 EnchantEnhancementClient;移除 server entrypoint
ServerPlayerJoinListener.java ENTITY_LOADJOIN;40 tick 延迟队列;增加 syncToAllPlayers()DISCONNECT 清理
EnchantmentConfig.java syncConfigToAllPlayers() 实现实际推送;syncConfig() 增加 if (isServer) return 防主机自锁

二、多人游戏配置 UI 行为

概述

多人游戏中配置界面始终可交互,但已从服务器同步后,UI 修改不会写入本地配置、不会生效。

行为对照

场景 UI 可操作 修改是否生效/保存
单人游戏
主机(LAN/集成服务器)
多人游戏客户端(已同步)

文件变更

文件 修改
ConfigScreen.java 新增 isReadOnly 标记;UI 始终可交互,已同步时所有 setter 调用和保存均跳过

三、附魔等级分组视觉优化

  • 分组内展开条目向右缩进 18px
  • 展开条目名称颜色变灰(0xFFAAAAAA
  • 展开条目输入框缩小(64×16 vs 78×18)

四、创造模式附魔书刷新

保存配置后直接返回游戏画面,确保重新打开创造物品栏时附魔书等级刷新。


五、依赖与环境修复

文件 修改
gradle.properties Fabric Loader 0.15.110.19.3;版本号 1.0.31.0.4
build.gradle 移除 enchanting-infuserpuzzles-libforge-config-api-port 开发辅助 Mod
fabric.mod.json fabricloader 最低版本 >=0.15.11>=0.16.10
1.0.3Бета1.20.2, 1.20.3, 1.20.4 · 7 июня 2026 г.

Enchant Enhancemen 1.0.3 for 1.20.1-1.20.4

  • Supported Versions
1.0.3Релиз1.21.1, 1.21.2, 1.21.3 · 25 апреля 2026 г.

Enchant Enhancemen 1.0.3 for 1.21-1.21.3

  • Fixed known issues
  • Updated the toggle for advanced enchantment level equipment generation for creatures
1.0.2Релиз1.21.1, 1.21.2, 1.21.3 · 11 апреля 2026 г.

Enchant Enhancemen 1.0.2 for 1.21-1.21.3

  • Fixed the issue where enchantment values could not be modified
  • Fixed the issue where the list disappeared when resetting to default values
1.0.1Бета1.21.1, 1.21.2, 1.21.3 · 4 апреля 2026 г.

Enchant Enhancemen 1.0.1 for 1.21-1.21.3

  • Fixed the issue with switch translation

Комментарии

Загружаем…