minecraft:destructible_by_mining for you with a switch.Get GodCraftOverview
minecraft:destructible_by_mining is a block component: it goes in the components object of a custom block. Controls how long it takes to break the block by hand or with tools. Set it to false to make the block impossible to mine, like bedrock.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
seconds_to_destroy | number | none | Breaking time in seconds without a helpful tool. A higher number takes longer.Range: 0 to … |
item_specific_speeds | Item Specific Speed[] | none | Faster (or slower) breaking times for certain items or item tags, such as pickaxes. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0,
"item_specific_speeds": []
}
}