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) 매크로 치환.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:simple_input_form",
|
||||
"type": "minecraft:notice",
|
||||
"title": {
|
||||
"text": "정답 입력",
|
||||
"bold": true
|
||||
},
|
||||
"body": [],
|
||||
"inputs": [
|
||||
{
|
||||
"type": "minecraft:text",
|
||||
@@ -19,8 +20,13 @@
|
||||
"can_close_with_escape": true,
|
||||
"pause": false,
|
||||
"after_action": "close",
|
||||
"action": {
|
||||
"label": {
|
||||
"text": "제출"
|
||||
},
|
||||
"action": {
|
||||
"type": "minecraft:dynamic/run_command",
|
||||
"template": "function mq:answer/submit {text:'$(text)'}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user