music_quiz: dialog 기반 정답 입력 + 큐 기반 first-submit-wins 추가
정답 입력 UI 를 dialog 로 제공 (mq:dialog/answer), #minecraft:quick_actions 태그 등록으로 빠른행동키에서 바로 열 수 있게 함. 동시 제출 시 먼저 제출한 사람이 정답으로 인정되도록 mq:answer/ 에 submit_seq 기반 FIFO 큐 + 매크로 기반 제출자 lookup 으로 처리. tick/stop/setanswer 도 새 큐 흐름에 맞춰 업데이트.
This commit is contained in:
26
music_quiz/data/mq/dialog/answer.json
Normal file
26
music_quiz/data/mq/dialog/answer.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"type": "minecraft:simple_input_form",
|
||||
"title": {
|
||||
"text": "정답 입력",
|
||||
"bold": true
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"type": "minecraft:text",
|
||||
"key": "text",
|
||||
"label": {
|
||||
"text": "정답"
|
||||
},
|
||||
"width": 300,
|
||||
"max_length": 64,
|
||||
"initial": ""
|
||||
}
|
||||
],
|
||||
"can_close_with_escape": true,
|
||||
"pause": false,
|
||||
"after_action": "close",
|
||||
"action": {
|
||||
"type": "minecraft:dynamic/run_command",
|
||||
"template": "function mq:answer/submit {text:'$(text)'}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user