곡 포맷에 선택 필드 video(영상 URL)를 추가. 정답 공개 상태(init=6) 동안 repeat/timers/init6 에서 매 tick answer.video 를 actionbar 에 흰색으로 재전송해 유지한다. video 필드가 없는 곡은 표시하지 않는다(if data 로 게이트). answer 는 setanswer 가 곡 객체로 통째로 교체하므로 곡별 video 가 그대로 반영되고 미지정 곡에서는 잔상이 남지 않는다. songs.mcfunction 포맷 주석/예시도 갱신. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
10 lines
646 B
MCFunction
10 lines
646 B
MCFunction
# 정답 공개 동안(init=6) 곡의 video URL 을 actionbar 에 흰색으로 계속 표시.
|
|
# 매 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":""}
|
|
# 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
|
|
execute if score timer main matches 300.. run function mq:quiz/select with storage mq:main
|