πSoundEffect
Play sounds, create sounds
SoundData
val sound = soundOf(Sound.ENTITY_ILLUSIONER_CAST_SPELL, pitch = .6)
fun playMySound(player: Player) = player.playEffect(sound)
SoundMelody
val sound = buildMelody {
beat {
sound(soundOf(ENTITY_ILLUSIONER_CAST_SPELL, pitch = .6))
}
beat(soundOf(Sound.BLOCK_NOTE_BLOCK_BANJO, pitch = .1))
beat(soundOf(Sound.BLOCK_NOTE_BLOCK_BANJO, pitch = .5))
beat(soundOf(Sound.BLOCK_NOTE_BLOCK_BANJO, pitch = 1))
beat(soundOf(Sound.BLOCK_NOTE_BLOCK_BANJO, pitch = 1.5))
beat(soundOf(Sound.BLOCK_NOTE_BLOCK_BANJO, pitch = 2))
repetitions = 2
delayPerBeat = .2.seconds
delayPerSound = Duration.ZERO
}
fun playMySound(player: Player) =
player.playEffect(sound)
Last updated