diff --git a/music_quiz/data/mq/function/commands/stop.mcfunction b/music_quiz/data/mq/function/commands/stop.mcfunction index 0c5734e..af45f85 100644 --- a/music_quiz/data/mq/function/commands/stop.mcfunction +++ b/music_quiz/data/mq/function/commands/stop.mcfunction @@ -51,6 +51,8 @@ scoreboard objectives add score dummy {"text":"점수","bold":true} scoreboard objectives setdisplay sidebar score dialog clear @a +# 정답 video URL actionbar 잔상 제거 (전체 리셋의 일부) +title @a actionbar {"text":""} bossbar set mq:process name [{"text":"진행도: ","color": "yellow","bold": true},{"score":{"name":"index","objective": "main"},"color": "yellow","bold": true},{"text":"/","color": "yellow","bold": true},{"score":{"name":"max_index","objective": "main"},"color": "yellow","bold": true}] $bossbar set mq:process max $(max_index) diff --git a/music_quiz/data/mq/function/repeat/timers/init6.mcfunction b/music_quiz/data/mq/function/repeat/timers/init6.mcfunction index bc78306..0fd878f 100644 --- a/music_quiz/data/mq/function/repeat/timers/init6.mcfunction +++ b/music_quiz/data/mq/function/repeat/timers/init6.mcfunction @@ -1,8 +1,11 @@ # 정답 공개 동안(init=6) 곡의 video URL 을 actionbar 에 흰색으로 계속 표시. -# 매 tick 재전송해 잔상 없이 유지. video 필드가 없는 곡은 표시하지 않음. +# 매 tick 재전송해 유지. video 필드가 없는 곡은 표시하지 않음. execute if data storage mq:main answer.video run title @a actionbar [{"storage":"mq:main","nbt":"answer.video","color":"white"}] execute if score timer main matches 300 run title @a title {"text":""} +# 다음 상태로 넘어가기 전 actionbar 비우기 — 안 비우면 마지막 URL 이 다음 곡(init=5) +# 초반까지 ~3초 잔상으로 남는다. select 보다 먼저 실행되어 깔끔히 지워진다. +execute if score timer main matches 300 run title @a actionbar {"text":""} # warn-off execute-group execute if score timer main matches 290 run function mq:images/clear execute if score timer main matches 290 run function mq:videos/clear