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.
Note
This item requires a format version of at least 1.21.50.
Alternate Simple Representations
This item can also be represented as a Boolean true/false.
Destructible By Mining Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| item_specific_speeds | not set | Array of Item Specific Speeds items | Optional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float. | Samples: "{ "minecraft:destructible_by_mining": { "seconds_to_destroy": 10, "item_specific_speeds": [ { "item": { "tags": "q.any_tag('minecraft:is_pickaxe', 'minecraft:is_tool') " }, "destroy_speed": 5.0 } ] } }", "{ "minecraft:destructible_by_mining": { "seconds_to_destroy": 10, "item_specific_speeds": [ { "item": "minecraft:iron_pickaxe", "destroy_speed": 5.0 }, { "item": "minecraft:diamond_pickaxe", "destroy_speed": 2.0 } ] } }" |
| seconds_to_destroy | 0 | Decimal number | Sets the number of seconds it takes to destroy the block with base equipment. Greater numbers result in greater mining times. | Block Black Concrete Double Slab: 1.8, Block Black Wool Double Slab: 0.8 |
item_specific_speeds
Optional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float. This array currently requires UpcomingFeatures experiment to be enabled.
Item Specific Speeds
Optional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float. This array currently requires UpcomingFeatures experiment to be enabled.
Item Specific Speeds Properties
JSON path: item_specific_speeds
| Name | Default Value | Type | Description |
|---|---|---|---|
| destroy_speed | not set | Decimal number | Required. A destroy speed applied while using the defined 'item'. |
| item | not set | Array of Item items | Required. A filter for the item used while mining. |
| item (as String) | not set | String | An item tag that is usable for the item. |
Item
Optional array of objects to describe item specific block destroy speeds, each object contains an 'item' ItemDescriptor and a 'destroy_speed' float. This array currently requires UpcomingFeatures experiment to be enabled.
Item Properties
JSON path: item_specific_speeds > item
| Name | Default Value | Type | Description |
|---|---|---|---|
| tags | not set | Array of numbers |
Samples
At JSON Object (Item Tags):
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 10,
"item_specific_speeds": [
{
"item": {
"tags": "q.any_tag('minecraft:is_pickaxe', 'my_pack:custom_tool') "
},
"destroy_speed": 5
}
]
}
At JSON Object (Item Ids):
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 10,
"item_specific_speeds": [
{
"item": "minecraft:iron_pickaxe",
"destroy_speed": 5
},
{
"item": "minecraft:diamond_pickaxe",
"destroy_speed": 2
}
]
}
Block Fabricator
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0.4
}
Block White Sand
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 7.5,
"item_specific_speeds": [
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:wooden_tier')"
},
"destroy_speed": 1.15
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:stone_tier')"
},
"destroy_speed": 0.6
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:iron_tier')"
},
"destroy_speed": 0.4
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:golden_tier')"
},
"destroy_speed": 0.2
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:diamond_tier')"
},
"destroy_speed": 0.3
},
{
"item": {
"tags": "q.all_tags('minecraft:is_pickaxe', 'minecraft:netherite_tier')"
},
"destroy_speed": 0.25
}
]
}
Block Leaf Pile
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 1
}
Luckyblock
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 5,
"item_specific_speeds": []
}
Block Black Concrete Double Slab
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 1.8
}
Block Black Wool Double Slab
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0.8
}