Skip to content
zNotChill edited this page Sep 13, 2025 · 1 revision

You can create a sound using the sound(String) function. The sound(String) builder returns an adventure Sound.

The builder is optional, and the volume and pitch default to 1.0. The sound source defaults to Sound.Source.MASTER.

You can play multiple sounds at once to an Audience or a Player using playSounds(List<Sound>) or playSounds(List<Sound>, Point).

Sound Example

sound("block.anvil.fall") {
    source = Sound.Source.BLOCK
    volume = 1.0
    pitch = 1.0
}
sound("block.anvil.fall")
player.playSound(sound("block.anvil.fall"))
Audience.playSound(sound("block.anvil.fall"))

Clone this wiki locally