change music a bit

This commit is contained in:
Chipmunk 2024-04-05 20:57:08 -04:00
parent 8d2aebd4a6
commit 69966ec746

View file

@ -91,8 +91,7 @@ function inject (bot) {
notes.forEach(async (note, i) => {
if (time >= note.time) {
const floatingpitch = Math.pow(2, (note.pitch - 12) / 12.0)
bot.core.run(`minecraft:execute at @a run playsound block.note_block.${note.instrument} record @p ^1 ^ ^ 99 ${floatingpitch}`)
bot.core.run(`minecraft:execute at @a run playsound block.note_block.${note.instrument} record @p ^-1 ^ ^ 99 ${floatingpitch}`)
bot.core.run(`minecraft:execute at @a run playsound block.note_block.${note.instrument} record @p ~ ~ ~ ${note.volume} ${floatingpitch}`)
notes.splice(i, 1)
}
})