minecraft:repairable¶
文档版本:1.21.0.24
The repairable item component specifies which items can be used to repair this item, along with how much durability is gained.
架构¶
minecraft:repairable:
{
array "repair_items" : opt
{
array "<any array element>" : opt
{
item_descriptor "<any array element>"
}
object "<any array element>" : opt
{
array "items" : opt
{
item_descriptor "<any array element>"
}
expression_node "repair_amount"
}
string "<any array element>" : opt
}
}
repair_items
:array- List of repair item entries. Each entry needs to define a list of strings for
items
that can be used for the repair and an optionalrepair_amount
for how much durability is gained.
repair_items
<any array element>
:array
<any array element>
<any array element>
:item_descriptor
<any object property>
:string
<any array element>
:object
<any array element>
items
:array- Items that may be used to repair an item.
items
<any array element>
:item_descriptor
repair_amount
:expression_node- How much the item is repaired.
expression
:string
version
:integer
<any array element>
:string