概览
minecraft:sound 是一个方块组件:写在自定义方块的 components 对象中。 选择方块在放置、破坏和被踩踏时发出的一组声音。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
sound | string | "" | 声音组名称,例如 "stone"、"wood"、"grass" 或 "glass"。 |
示例
写在 BP/blocks/<name>.json 的 components 对象中(值为默认值或占位值):
BP/blocks/<name>.json
{
"minecraft:sound": {
"sound": ""
}
}