1. Wiki
  2. /物品
  3. /minecraft:repairable

minecraft:repairable

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:repairable。Get GodCraft

概览

minecraft:repairable 是一个物品组件:写在自定义物品的 components 对象中。 列出哪些物品可以在铁砧中修复这个物品,以及每次修复恢复多少耐久。需要 minecraft:durability。

字段

字段类型默认值说明
repair_itemsRepair[]无包含修复物品的条目,以及可选的 repair_amount(数字或 Molang),表示恢复的耐久值。

示例

写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):

BP/items/<name>.json
{
  "minecraft:repairable": {
    "repair_items": []
  }
}

物品: 行为包

We use cookies to improve your experience and analyse site traffic. Learn more