1. Wiki
  2. /Blocks
  3. /minecraft:destructible_by_mining

minecraft:destructible_by_mining

Don't want to write this by hand? GodCraft sets minecraft:destructible_by_mining for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
seconds_to_destroynumbernoneBreaking time in seconds without a helpful tool. A higher number takes longer.Range: 0 to …
item_specific_speedsItem Specific Speed[]noneFaster (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": []
  }
}

Blocks: Behavior pack

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