1 Commits

Author SHA1 Message Date
Claude (owner)
141bc5eaa5 music_quiz: fix invalid dialog type — simple_input_form → notice
mq/dialog/answer.json 이 'minecraft:simple_input_form' 타입을 쓰는데
1.21.6 dialog registry 에 그 타입이 없어서 데이터팩 로드 자체가 실패
"세계를 불러올 수 없습니다" 오류. 유효한 타입 중 단일 버튼 + inputs 를
지원하는 minecraft:notice 로 교체, action 을 button(label+inner action)
구조로 감싼다. dynamic/run_command 템플릿은 그대로 — $(text) 매크로 치환.
2026-05-13 23:36:29 +09:00

View File

@@ -1,9 +1,10 @@
{ {
"type": "minecraft:simple_input_form", "type": "minecraft:notice",
"title": { "title": {
"text": "정답 입력", "text": "정답 입력",
"bold": true "bold": true
}, },
"body": [],
"inputs": [ "inputs": [
{ {
"type": "minecraft:text", "type": "minecraft:text",
@@ -19,8 +20,13 @@
"can_close_with_escape": true, "can_close_with_escape": true,
"pause": false, "pause": false,
"after_action": "close", "after_action": "close",
"action": {
"label": {
"text": "제출"
},
"action": { "action": {
"type": "minecraft:dynamic/run_command", "type": "minecraft:dynamic/run_command",
"template": "function mq:answer/submit {text:'$(text)'}" "template": "function mq:answer/submit {text:'$(text)'}"
} }
} }
}