跳转至

未命名

文档版本:1.21.0.24

Describes the destructible by mining properties for this block. If set to true, the block will take the default number of seconds to destroy. If set to false, this block is indestructible by mining. If the component is omitted, the block will take the default number of seconds to destroy.

架构

minecraft:destructible_by_mining:
boolean
minecraft:destructible_by_mining:
{
  array "item_specific_speeds" : opt
  {
    object "<any array element>" : opt
    {
      item_descriptor "item"
      number "destroy_speed" : opt
    }
  }
  number "seconds_to_destroy" : opt
}
item_specific_speedsarray
item_specific_speeds
<any array element>object
<any array element>
itemitem_descriptor
item is required and it is an ItemDescriptor filtering for the item used while mining.
item_descriptor:
string
item_descriptor:
{
  string "<any object property>" : opt
}
<any object property>string
destroy_speednumber
destroy_speed is required and it is the speed applied while using the defined item.
seconds_to_destroynumber
Sets the number of seconds it takes to destroy the block with base equipment. Greater numbers result in greater mining times.