跳到主要内容

💡 可切换灯方块

属性名称属性类型是否必需
litboolean
poweredboolean

可切换灯方块允许方块在有 powered 属性时通过红石信号激活时轮换 lit 状态,或当启用 can-open-with-hand 时,可通过右键轮换 lit 状态。

blocks:
default:copper_coil:
behavior:
type: toggleable_lamp_block
can-open-with-hand: false # 当设置成 true 时,powered 属性为可选