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

minecraft:destructible_by_explosion

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

Overview

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

FieldTypeDefaultDescription
explosion_resistancenumbernoneHow 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
  }
}

Blocks: Behavior pack

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