From b43d120e66bf8435850d90f729f3c5562cd672e0 Mon Sep 17 00:00:00 2001 From: "Claude (owner)" Date: Sat, 16 May 2026 23:36:03 +0900 Subject: [PATCH] =?UTF-8?q?music=5Fquiz:=20pack.mcmeta=20=EB=A5=BC=20min?= =?UTF-8?q?=5Fformat/max=5Fformat=20[101,1]=20=EB=A1=9C=20=EA=B0=B1?= =?UTF-8?q?=EC=8B=A0=20+=20normalize/step.mcfunction=20`set=20string=20fro?= =?UTF-8?q?m`=20=ED=8C=8C=EC=8B=B1=20=EC=97=90=EB=9F=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pack.mcmeta: 25w31a 이후 도입된 min_format/max_format 배열 스펙으로 교체. min_format >= 82 이므로 pack_format 키는 생략. - step.mcfunction L8, L45: `data modify ... set string from ` 는 잘못된 문법. 올바른 형태는 `set string [start] [end]` (from 없음). 이로 인해 8행 부근 파싱이 멈추던 문제 해결. --- .../data/mq/function/answer/normalize/step.mcfunction | 4 ++-- music_quiz/pack.mcmeta | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/music_quiz/data/mq/function/answer/normalize/step.mcfunction b/music_quiz/data/mq/function/answer/normalize/step.mcfunction index 2a01dfd..6ed25a6 100644 --- a/music_quiz/data/mq/function/answer/normalize/step.mcfunction +++ b/music_quiz/data/mq/function/answer/normalize/step.mcfunction @@ -5,7 +5,7 @@ execute store result score n.len func.temp run data get storage mq:tmp norm.in execute if score n.len func.temp matches 0 run return 0 # 머리글자 추출 → norm.c -data modify storage mq:tmp norm.c set string from storage mq:tmp norm.in 0 1 +data modify storage mq:tmp norm.c set string storage mq:tmp norm.in 0 1 # 공백 제거 (스킵) execute if data storage mq:tmp norm{c:" "} run data modify storage mq:tmp norm.c set value "" @@ -42,6 +42,6 @@ execute if data storage mq:tmp norm{c:"Z"} run data modify storage mq:tmp norm.c function mq:answer/normalize/append with storage mq:tmp norm # 나머지로 진행 -data modify storage mq:tmp norm.in set string from storage mq:tmp norm.in 1 +data modify storage mq:tmp norm.in set string storage mq:tmp norm.in 1 function mq:answer/normalize/step diff --git a/music_quiz/pack.mcmeta b/music_quiz/pack.mcmeta index ac160d4..5ce8ec7 100644 --- a/music_quiz/pack.mcmeta +++ b/music_quiz/pack.mcmeta @@ -1,8 +1,7 @@ { "pack": { - "pack_format": 75, - "min_format": 75, - "max_format": 75, - "description": "음악퀴즈용 데이터팩입니다." + "description": "음악퀴즈용 데이터팩입니다.", + "min_format": [101, 1], + "max_format": [101, 1] } }