无附魔
No Enchantment 是一款 Minecraft NeoForge 模组,旨在彻底移除游戏中的附魔机制。
对于希望禁用附魔以增加难度,或制作“低魔法/无魔法”整合包(modpack)的整合包作者而言,这是理想的解决方案。该模组不仅禁止附魔生成,还会(可选地)将现有的附魔物品主动转换为普通物品。
作者在开发此模组时使用了 Gemini 辅助编码,核心逻辑均为手动编写。
? 模组信息
- 支持版本: Minecraft 1.21.1 (NeoForge)
- 作者: Jasdew Starfield
- 许可证: MIT License
✨ 功能
本模组采用多种方法确保附魔不会出现在游戏中。所有功能均可自由开关:
-
禁用战利品附魔
- 从箱子、结构战利品或怪物装备中生成的物品将不再带有附魔。
- 附魔书将转换为普通书。
- 通过 Mixin 拦截
LootPool 和 EnchantmentHelper 逻辑。
-
禁用随机附魔计算
- 禁用通过钓鱼、村民交易或其他依赖随机附魔逻辑算法生成的附魔。
- 通过 Mixin 拦截
EnchantmentHelper 逻辑。
-
主动剥离物品附魔(备用选项,默认:关闭)
- 附魔书转换:所有“附魔书”在拾取、掉落或生成时,会自动转换为普通的“书”(保留自定义名称)。
- 移除附魔:任何附魔物品(剑、盔甲等)在拾取、掉落或生成时,其附魔属性将被强制移除。
-
禁用附魔台
- 玩家无法打开附魔台界面。右键点击附魔台将无任何反应。
-
移除铁砧经验消耗
- 作为缺乏经验修补(Mending)的补偿,使用铁砧不再需要消耗经验等级。这允许玩家自由修复物品。
- 通过 Mixin 修改
AnvilMenu 逻辑。
-
JEI 支持
- 在 JEI 面板中隐藏附魔书。
- 隐藏铁砧附魔配方。
- 隐藏砂轮(Grindstone)配方分类。
请注意: 本模组仅保证上述方面的附魔移除,这涵盖了绝大多数原版情况。其他模组添加的内容(例如通过特定方式直接制作或获取附魔书)仍可能导致获得附魔。整合包作者可能需要手动处理这些边缘情况。
⚙️ 配置
本模组提供了广泛的配置选项,可在 config/noenchantment-common.toml 中进行调整。默认情况下,除“物品剥离”部分外,所有功能均已启用。
如果遇到任何不兼容问题,请尝试先禁用 Mixins,并向我们提交 Issue!
? 许可证
本项目基于 MIT License 开源。
No Enchantment
No Enchantment is a Minecraft NeoForge mod designed to completely remove enchantment mechanics from the game.
For modpack authors looking to increase difficulty by disabling enchantments, or creating "low-magic/no-magic" modpacks, this is an ideal solution. The mod not only prohibits the generation of enchantments but also (optionally) actively converts existing enchanted items into normal items.
The author used Gemini to help with coding while building this mod. The core mechanics are written manually.
? Mod Info
- Supported Version: Minecraft 1.21.1 (NeoForge)
- Author: Jasdew Starfield
- License: MIT License
✨ Features
This mod employs multiple methods to ensure enchantments do not appear in the game. All features can be toggled freely:
-
Disable Loot Enchantments
- Items generated from chests, structure loot, or mob equipment will no longer carry enchantments.
- Enchanted Books will be converted into normal Books.
- Intercepts
LootPool and EnchantmentHelper logic via Mixin.
-
Disable Random Enchantment Calculation
- Disables enchantments generated via fishing, villager trading, or other algorithms relying on random enchantment logic.
- Intercepts
EnchantmentHelper logic via Mixin.
-
Active Item Stripping (Fallback Option, Default: OFF)
- Enchanted Book Conversion: All "Enchanted Books" will automatically convert to normal "Books" (preserving custom names) when picked up, dropped, or spawned.
- Remove Enchantments: Any enchanted items (swords, armor, etc.) will have their enchantment attributes forcibly removed when picked up, dropped, or spawned.
-
Disable Enchanting Table
- Players cannot open the Enchanting Table interface. Right-clicking the table will trigger no response.
-
Remove Anvil Experience Cost
- As compensation for the lack of Mending, using the Anvil requires no experience levels. This allows players to repair items freely.
- Modifies
AnvilMenu logic via Mixin.
-
JEI Support
- Hides Enchanted Books in the JEI panel.
- Hides anvil enchanting recipes.
- Hides the Grindstone recipe category.
Please Note: This mod only guarantees enchantment removal for the aspects mentioned above, which covers the vast majority of vanilla situations. Content added by other mods (e.g., directly crafting or obtaining Enchanted Books via specific methods) may still result in acquiring enchantments. Modpack authors may need to handle these edge cases manually.
⚙️ Configuration
The mod provides extensive configuration options, which can be adjusted in config/noenchantment-common.toml. By default, all features (except for the Item Stripping section) are enabled.
If you encounter any incompatibilities, please try disabling the Mixins first and report the Issue to us!
? License
This project is open-source under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧