-
Notifications
You must be signed in to change notification settings - Fork 0
Sounds
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("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"))