change music a bit
This commit is contained in:
parent
8d2aebd4a6
commit
69966ec746
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue