This commit is contained in:
tkrmagid-desktop
2026-06-05 18:11:14 +09:00
parent 5d866a1457
commit eeb9b56010
11 changed files with 64 additions and 28 deletions

View File

@@ -1 +1,2 @@
$stopsound @a $(source)
$execute as @a at @s run playsound $(namespace):$(track) $(source) @s ~ ~ ~ $(volume) $(pitch)

View File

@@ -2,9 +2,9 @@ data modify storage mq:tmp playsound set from storage mq:main audio
data modify storage mq:tmp playsound.track set from storage mq:main answer.track
# 곡 단위 volume override — songs[i].volume 가 없으면 audio.volume 그대로 유지 (no-op)
data modify storage mq:tmp playsound.volume set from storage mq:main answer.volume
function mq:quiz/macro/play_sound with storage mq:tmp playsound
# volume 테스트 (replay 이용)
# function mq:quiz/stop_sound
# data modify storage mq:main answer.volume set value 0.5
# function mq:quiz/play_sound
# function mq:quiz/play_sound

View File

@@ -1,7 +1,5 @@
scoreboard players set timer main 0
stopsound @a player
execute if score index main >= max_index main run return run function mq:quiz/end with storage mq:main
scoreboard players add index main 1