工具,别弄坏。

工具,别弄坏。

损坏的工具会留下,就像鞘翅一样。

游戏机制

工具不会损坏,而是会获得负耐久度。耐久度 ≤ 0 的工具将完全无法使用。

在工作台或铁砧中合并你的工具来修复它们,或者将它们熔炼成粒。


面向开发者

  • 添加到 #tdnb:removed_from_broken_items 的数据组件类型将在物品损坏时从物品中移除。
    • 添加到 #tdnb:restored_to_repaired_items 的数据组件类型将在物品被修复时重新添加到物品中。
    • 添加到 #tdnb:removed_from_broken_and_restored_to_repaired_items 的数据组件类型将同时添加到两者(默认情况下为 minecraft:tool 和 minecraft:weapon)。
    • 待恢复的组件存储在 minecraft:custom_data 数据组件内的 tdnb:broken_components 对象下。
  • 添加到 #tdnb:ignored 的附魔在工具损坏时不会被禁用,在工具修复时也不会被重新启用(默认情况下为 minecraft:mending 和 minecraft:vanishing_curse)。
    • 被禁用的附魔会从 minecraft:enchantments 移动到 minecraft:stored_enchantments。
  • 添加到 #tdnb:ignored 的物品将被本模组完全忽略(默认情况下为包含 minecraft:elytra 的 #c:elytra,以及 #tconstruct:modifiable)。

本模组是为 Vanillative 整合包制作的。