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

minecraft:instrument_sound

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

概览

minecraft:instrument_sound 是一个方块组件:写在自定义方块的 components 对象中。 选择这个方块在音符盒上方或下方时音符盒发出的声音。把 "up" 和/或 "down" 设为某个音符音效;用 "note.none" 表示静音。

示例

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

BP/blocks/<name>.json
{
  "minecraft:instrument_sound": {}
}

方块: 行为包

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