minecraft:chest_obstruction for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
obstruction_rule | Chest 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"
}
}