1. Wiki
  2. /方块
  3. /minecraft:chest_obstruction

minecraft:chest_obstruction

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:chest_obstruction。Get GodCraft

概览

minecraft:chest_obstruction 是一个方块组件:写在自定义方块的 components 对象中。 决定这个方块是否会挡住下方箱子的打开。

字段

字段类型默认值说明
obstruction_ruleChest Obstruction rule"shape"方块何时挡住箱盖:"shape" 检查方块的实际形状,"always" 总是挡住,"never" 从不挡住。

示例

写在 BP/blocks/<name>.json 的 components 对象中(值为默认值或占位值):

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

方块: 行为包

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