From 141bc5eaa5cd170da0a5a63d6f467490ad99afbd Mon Sep 17 00:00:00 2001 From: "Claude (owner)" Date: Wed, 13 May 2026 23:36:29 +0900 Subject: [PATCH] =?UTF-8?q?music=5Fquiz:=20fix=20invalid=20dialog=20type?= =?UTF-8?q?=20=E2=80=94=20simple=5Finput=5Fform=20=E2=86=92=20notice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) 매크로 치환. --- music_quiz/data/mq/dialog/answer.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/music_quiz/data/mq/dialog/answer.json b/music_quiz/data/mq/dialog/answer.json index f5d958b..92b12f6 100644 --- a/music_quiz/data/mq/dialog/answer.json +++ b/music_quiz/data/mq/dialog/answer.json @@ -1,9 +1,10 @@ { - "type": "minecraft:simple_input_form", + "type": "minecraft:notice", "title": { "text": "정답 입력", "bold": true }, + "body": [], "inputs": [ { "type": "minecraft:text", @@ -20,7 +21,12 @@ "pause": false, "after_action": "close", "action": { - "type": "minecraft:dynamic/run_command", - "template": "function mq:answer/submit {text:'$(text)'}" + "label": { + "text": "제출" + }, + "action": { + "type": "minecraft:dynamic/run_command", + "template": "function mq:answer/submit {text:'$(text)'}" + } } }