if data 게이트를 제거하고 init6 에서 매 tick answer.video 를 무조건 actionbar 로 보낸다. video 가 "" 이거나 필드가 없으면 빈 문자열이 출력돼 아무것도 안 보이고, 빈 actionbar 가 매 tick 덮어쓰므로 잔상도 자연히 사라진다. 상태 전환/정지 시의 빈 actionbar 클리어는 그대로 유지. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
993 B
MCFunction
14 lines
993 B
MCFunction
# 정답 공개 동안(init=6) 곡의 video URL 을 actionbar 에 흰색으로 계속 표시.
|
|
# 매 tick 항상 재전송한다. video 가 "" 이거나 없는 곡은 빈 문자열이 그대로 출력돼
|
|
# 아무것도 안 보이고, 매 tick 빈 actionbar 로 덮어써 잔상도 남지 않는다.
|
|
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
|
|
execute if score timer main matches 300.. run function mq:quiz/select with storage mq:main
|