From b7c284facb6c22fd6c86026f58a73392a979c635 Mon Sep 17 00:00:00 2001 From: "Claude (owner)" Date: Sun, 14 Jun 2026 02:25:04 +0900 Subject: [PATCH] =?UTF-8?q?videos:=20=EC=A0=95=EB=8B=B5=20video=20URL=20ac?= =?UTF-8?q?tionbar=20=EC=9E=94=EC=83=81=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actionbar 는 재전송을 멈춰도 ~3초간 페이드로 남으므로, init6 의 video URL 이 다음 곡(init=5) 초반까지 잔상으로 보였다. 상태 전환(timer 300, select) 직전에 빈 actionbar 를 보내 깔끔히 지우고, 전체 리셋인 commands/stop 에도 동일하게 빈 actionbar 를 추가해 종료/리셋 시 잔상이 남지 않게 한다. Co-Authored-By: Claude Opus 4.7 --- music_quiz/data/mq/function/commands/stop.mcfunction | 2 ++ music_quiz/data/mq/function/repeat/timers/init6.mcfunction | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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