🚪 门方块
| 属性名称 | 属性类型 | 是否必需 |
|---|---|---|
| open | boolean | 是 |
| powered | boolean | 是 |
| half | double_block_half | 是 |
| facing | horizontal_direction | 是 |
| hinge | hinge | 是 |
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 中属于硬编码,该功能可能仅在后续版本中支持。