跳到主要内容

🔊 音效

信息

执行 /playsound 时,游戏触发的是声音事件;实际播放的音频文件则由 sounds 列表指定。CraftEngine 使用的字段名称与原版格式一致,各参数含义可参阅 Minecraft Wiki。

sounds:
minecraft:custom_block.place:
replace: false
subtitle: subtitles.custom_block.place
sounds:
- "block/custom_block_1"
minecraft:custom_ambient.custom_biome:
replace: false
subtitle: subtitles.custom_ambient.custom_biome
sounds:
- name: "ambient/custom_biome_1"
volume: 0.4
weight: 3
- name: "ambient/custom_biome_2"
volume: 0.4
weight: 7
- name: "ambient/custom_biome_3"
volume: 0.4
weight: 10
stream: false
attenuation_distance: 16
preload: false
type: "file"