Skip to main content

🔊 Sound

info

When you use the /playsound command to play a sound, it should actually be referred to as a sound event, while the actual sounds are located under the sounds list. You can check the Minecraft Wiki to understand the effects corresponding to each parameter. The plugin does not provide extensive descriptions here because the Minecraft Wiki already explains each part very clearly, and CraftEngine uses the same configuration option names as those described in the 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"