정답 입력 UI 를 dialog 로 제공 (mq:dialog/answer), #minecraft:quick_actions 태그 등록으로 빠른행동키에서 바로 열 수 있게 함. 동시 제출 시 먼저 제출한 사람이 정답으로 인정되도록 mq:answer/ 에 submit_seq 기반 FIFO 큐 + 매크로 기반 제출자 lookup 으로 처리. tick/stop/setanswer 도 새 큐 흐름에 맞춰 업데이트.
11 lines
494 B
MCFunction
11 lines
494 B
MCFunction
function mq:repeat/players
|
|
function mq:repeat/buttons/handler
|
|
function mq:repeat/triggers/handler
|
|
|
|
execute if score init main matches 2.. run function mq:repeat/timer
|
|
execute if score init main matches 5..6 run function mq:repeat/check_answer
|
|
|
|
# 정답 입력 다이얼로그: init=5 (곡 재생 중) 일 때만 열림 / 제출 처리
|
|
execute if score init main matches 5 as @a[scores={input=1..}] run function mq:answer/open
|
|
execute if score init main matches 5 run function mq:answer/process
|