Curses Removed
Curses Removed 是一款 NeoForge 1.21.1 模组,通过检测标记为 minecraft:curse 的诅咒附魔并将其从物品中移除,使诅咒附魔不会出现在正常游戏流程中。
功能特性
- 通过共享的
minecraft:curse 附魔标签来检测诅咒附魔。
- 支持原版诅咒以及其他模组添加的诅咒附魔(前提是它们使用了该诅咒标签)。
- 从常规附魔物品中移除诅咒。
- 通过清理存储的附魔,从附魔书中移除诅咒。
- 在游戏过程中清理玩家背包。
- 当掉落物实体进入世界时,清理其身上的诅咒。
- 阻止通过
/enchant 命令施加诅咒附魔。
- 将原版的诅咒条目从普通附魔的工具提示排序中移除,并使其不参与非宝藏标签的判定。
游戏机制
基于标签的诅咒检测
该模组不会仅硬编码 minecraft:binding_curse 和 minecraft:vanishing_curse 用于运行时清理。相反,它会检查每个附魔是否位于 minecraft:curse 标签内,因此来自其他模组的、正确标记的诅咒附魔会自动被处理。
物品清理
每当在物品上发现诅咒附魔时,它们会从附魔组件中被剥离,而物品本身保持完整。这适用于以下两种情况:
DataComponents.ENCHANTMENTS
DataComponents.STORED_ENCHANTMENTS
这意味着诅咒工具、护甲、武器以及附魔书都会被清理。
命令拦截
原版附魔注册表仍保留诅咒 ID 以维持兼容性,但无法通过 /enchant 成功施加诅咒附魔。尝试施加带有标签的诅咒会失败,并提示:
Curse enchantments are disabled.
兼容性
模组自定义诅咒
其他模组可以添加新的诅咒附魔。只要这些附魔被标记为 minecraft:curse,Curses Removed 就会检测到并剥离它们,无需专门的兼容性补丁。
注册表安全
由于诅咒附魔 ID 仍保留在注册表中,它们可能会出现在命令补全建议中。这样可以避免破坏引用了这些附魔 ID 的数据包、战利品表、存档数据或其他模组,同时仍然防止诅咒附魔保留在物品上或被成功施加。
Curses Removed
Curses Removed is a NeoForge 1.21.1 mod that keeps curse enchantments out of normal gameplay by detecting enchantments tagged as minecraft:curse and removing them from items.
Features
- Detects curse enchantments through the shared
minecraft:curse enchantment tag.
- Supports vanilla curses and curse enchantments added by other mods when they use the curse tag.
- Removes curses from regular enchanted items.
- Removes curses from enchanted books through stored enchantment cleanup.
- Cleans player inventories during gameplay.
- Cleans dropped item entities when they enter the world.
- Blocks curse enchantments applied through
/enchant.
- Removes vanilla curse entries from normal enchantment tooltip ordering and non-treasure tag participation.
Gameplay
Tag-Based Curse Detection
The mod does not hardcode only minecraft:binding_curse and minecraft:vanishing_curse for runtime cleanup. Instead, it checks whether each enchantment is in minecraft:curse, so properly tagged curse enchantments from other mods are handled automatically.
Item Cleanup
Whenever cursed enchantments are found on an item, they are stripped from the enchantment component while the item itself remains intact. This applies to both:
DataComponents.ENCHANTMENTS
DataComponents.STORED_ENCHANTMENTS
That means cursed tools, armor, weapons, and enchanted books are all cleaned.
Command Blocking
The vanilla enchantment registry still keeps curse IDs registered for compatibility, but curse enchantments cannot be successfully applied through /enchant. Attempts to apply a tagged curse fail with:
Curse enchantments are disabled.
Compatibility
Modded Curses
Other mods can add new curse enchantments. As long as those enchantments are tagged with minecraft:curse, Curses Removed will detect and strip them without needing a dedicated compatibility patch.
Registry Safety
Curse enchantment IDs may still appear in command suggestions because they remain registered. This avoids breaking datapacks, loot tables, saved data, or other mods that reference those enchantment IDs, while still preventing curse enchantments from staying on items or being applied successfully.
评论 0
登录后参与评分
还没有评论,来抢沙发吧