跳到主要内容

🚪 门方块

属性名称属性类型是否必需
openboolean
poweredboolean
halfdouble_block_half
facinghorizontal_direction
hingehinge
blocks:
default:palm_door:
behavior:
type: door_block
can_open_with_hand: true
can_open_by_wind_charge: true
sounds:
open: block.wooden_door.open
close: block.wooden_door.close

提示

最多可创建 25 种新门

注意

自定义门无法被村民或僵尸交互(即使添加相关方块标签),因为门的开关逻辑在 Minecraft 中属于硬编码,该功能可能仅在后续版本中支持。