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

minecraft:chest_obstruction

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

Overview

minecraft:chest_obstruction is a block component: it goes in the components object of a custom block. Decides whether this block stops a chest underneath it from opening.

Fields

FieldTypeDefaultDescription
obstruction_ruleChest Obstruction rule"shape"When the block blocks the chest lid: "shape" checks the block's real shape, "always" always blocks it and "never" never does.

Example

Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):

BP/blocks/<name>.json
{
  "minecraft:chest_obstruction": {
    "obstruction_rule": "shape"
  }
}

Blocks: Behavior pack

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