minecraft:destructible_by_explosion for you with a switch.Get GodCraftOverview
minecraft:destructible_by_explosion is a block component: it goes in the components object of a custom block. Controls how well the block stands up to TNT, creepers and other blasts. Set it to false to make the block blast-proof.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
explosion_resistance | number | none | How hard the block is to blow up. 0 or less breaks easily, and bigger numbers survive stronger blasts.Range: 0 to … |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:destructible_by_explosion": {
"explosion_resistance": 0
}
}