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) 매크로 치환.
33 lines
584 B
JSON
33 lines
584 B
JSON
{
|
|
"type": "minecraft:notice",
|
|
"title": {
|
|
"text": "정답 입력",
|
|
"bold": true
|
|
},
|
|
"body": [],
|
|
"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": {
|
|
"label": {
|
|
"text": "제출"
|
|
},
|
|
"action": {
|
|
"type": "minecraft:dynamic/run_command",
|
|
"template": "function mq:answer/submit {text:'$(text)'}"
|
|
}
|
|
}
|
|
}
|