我决定制作一个 Mixin,将“不毁”附魔修改为使物品真正无法损坏。
只需对任何可以施加该附魔的物品应用“不毁”附魔,它应该就能正常工作。
配置文件位于 config/actuallyunbreaking.json(Forge)或 config/actuallyunbreaking.toml(Fabric)。
Fabric 依赖项
模组不需要 fabric api
modmenu 和 cloth config 用于提供配置界面 GUI
Forge 依赖项
1.16.5+: 如果你想要配置界面 GUI,cloth config 是可选的。
1.15.2: 你可能可以使用 configured 来作为配置界面 GUI。(我尚未测试此功能)
1.12.2: 必须安装 mixinbootstrap。
配置选项说明(如果你不使用 GUI)
-
maxLevelOnly:如果此项为 true,则只有最高等级的“不毁”附魔会使工具变为不可损坏。默认值 = false
-
useUnbreakableAtLevel:如果此项为 true,则工具仅在指定等级下变为不可损坏(会覆盖 maxLevelOnly 选项)。默认值 = false
-
unbreakableAtLevel:工具变为不可损坏所需的指定等级。默认值 = 3
-
mendingIncompatibility:如果此项为 true,“不毁”附魔将与“经验修补”附魔互斥。默认值 = true
-
useUnbreakableTag:当工具受到损伤时,如果此项为 true,将添加不可损坏的 NBT 标签,并从工具上移除“不毁”和“经验修补”附魔(你将无法再向该工具添加这两种附魔)。默认值 = true
此模组仅适用于服务器端。
整合包??
随便吧
Forge GitHub 链接
CurseForge 链接:
Fabric
Forge
i decided to make a mixin that changes the unbreaking enchantment to make the item actually unbreakable.
just apply the unbreaking enchantment to whatever item you can apply it to and it would probably work.
the config file is located in config/actuallyunbreaking.json or config/actuallyunbreaking.toml for fabric and forge respectively.
fabric dependencies
mod doesn't need fabric api
modmenu and cloth config for a config gui
forge dependencies
1.16.5+: cloth config is optional if you want a config gui.
1.15.2: you might be able to use configured for a config gui. (i haven't tested this)
1.12.2: mixinbootstrap is required.
config option explanations (if you're not using the gui)
-
maxLevelOnly: only the last level of unbreaking will set the tool to be unbreakable if this is true. default = false
-
useUnbreakableAtLevel: if this is true, the tool will only be unbreakable at a specified level (overrides maxLevelOnly option). default = false
-
unbreakableAtLevel: the specified level the tool will be unbreakable at. default = 3
-
mendingIncompatibility: unbreaking will be incompatible with mending if this is true. default = true
-
useUnbreakableTag: when the tool takes damage, the unbreakable nbt tag will be added and unbreaking (and mending) will be removed from the tool (you will no longer be able to add unbreaking and mending to the tool) if this is true. default = true
this mod is server side only.
modpacks??
sure whatever
forge github link
curseforge links:
fabric
forge
评论 0
登录后参与评分
还没有评论,来抢沙发吧