op: 데이터팩 출력을 실제 music_quiz zip 으로 교체
가이드 (mc_datapack/launcher_datapack_연동_가이드.txt) 에 따라:
- file/datapacks/music_quiz_template/ 에 mc_datapack 의 music_quiz/ 정적
파일을 미리 동봉 (data/mq/function/init/songs.mcfunction 제외).
- src/server/datapack.ts: list.music → SNBT (`{title, author, alias}`)
songs.mcfunction 빌더와 archiver 기반 zip 스트리머 추가.
- /op/datapack/:packName/generate 가 텍스트 placeholder 대신
music_quiz_<key>.zip 을 Content-Disposition attachment 로 내려준다.
- datapack.ejs 의 코드블록·복사 UI 제거, 곡 수는 서버 렌더 시점에 표시.
- 더 이상 쓰이지 않는 locales 의 datapackOutput.* 키 제거, datapack
버튼 라벨/상태 문구를 zip 다운로드용으로 정리.
This commit is contained in:
@@ -136,11 +136,9 @@
|
||||
"pickedNone": "선택된 음악퀴즈 없음",
|
||||
"pickedLabel": "선택: {{name}}",
|
||||
"totalCount": "총 {{count}}개의 음악을 찾았습니다.",
|
||||
"export": "데이터팩 출력",
|
||||
"copy": "복사",
|
||||
"copied": "복사됨",
|
||||
"exporting": "출력 중…",
|
||||
"exported": "출력 완료",
|
||||
"export": "데이터팩 zip 다운로드",
|
||||
"exporting": "다운로드 준비 중…",
|
||||
"exported": "다운로드를 시작했습니다.",
|
||||
"failed": "실패: {{message}}",
|
||||
"modalPickTitle": "음악퀴즈 선택"
|
||||
},
|
||||
@@ -161,14 +159,5 @@
|
||||
"ytdlpVideoFailed": "yt-dlp 영상 조회 실패 (code={{code}}): {{detail}}",
|
||||
"ytdlpPlaylistFailed": "yt-dlp 플레이리스트 조회 실패 (code={{code}}): {{detail}}",
|
||||
"tooManyRedirects": "redirect 가 너무 많습니다."
|
||||
},
|
||||
"datapackOutput": {
|
||||
"header": "# === musicquiz: {{name}} ===",
|
||||
"summary": "# 총 {{musicCount}}곡 / 사진 {{imageCount}}장",
|
||||
"initLine": "say [musicquiz] 데이터팩 초기화",
|
||||
"placeholder": "# 곡별 placeholder. 실제 포맷 확정되면 교체 예정.",
|
||||
"trackLine": "# {{index}}. {{title}} - {{artist}} ({{duration}}s)",
|
||||
"titleFallback": "(제목 없음)",
|
||||
"artistFallback": "(가수 미상)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user