music_quiz: 무대 의존 제거 + 정적 데이터 스토리지화 + 매 틱 게이팅

- 무대 한정 코드 제거: repeat/map/ (트리/조명), images/image_custom (파이브가이즈),
  load.mcfunction의 map 스코어보드·fill·counter 초기화
- 매 틱 디스패치를 init 상태로 게이팅:
  · timer는 init>=2, check_answer는 init in {5,6}에서만 호출
  · idle(init=0) 틱의 함수 호출 8개 → 4개
- 곡 50개를 매크로 체인(250+ 명령/회) → 스토리지 리스트 O(1) 룩업으로 전환
  mq:init/songs가 mq:main.songs를 적재, setanswer는 index-1로 인덱스 룩업
- 버튼/트리거 정의를 mq:init/buttons / mq:init/triggers로 분리해
  mq:main.button_defs · trigger_defs 스토리지 리스트로 관리
- repeat/triggers/trigger.mcfunction: 투표 후처리 산술 블록 중 변하지 않는
  max_player·rest_player 재계산 제거, $(n)_player 갱신만 1라인
- 작가용 메모 수정.txt 제거
- README.md: 변경 사항·새 구조·스토리지 스키마 반영

566 lines -, 154 lines +.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Claude (owner)
2026-05-13 15:45:35 +09:00
parent b1babad05a
commit 2b61af28a8
16 changed files with 212 additions and 561 deletions

View File

@@ -1,304 +1,8 @@
function mq:quiz/macro/setanswer { \
index: 1, \
title: "Lose My Mind", \
author: "Don Toliver", \
alias: [" "," ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 2, \
title: "The Chase", \
author: "Hearts2Hearts", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 3, \
title: "HOT SAUCE", \
author: "BABYMONSTER", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 4, \
title: "Golden", \
author: "HUNTR/X", \
alias: [""," "] \
}
function mq:quiz/macro/setanswer { \
index: 5, \
title: "", \
author: "", \
alias: ["Spin the wheel"] \
}
function mq:quiz/macro/setanswer { \
index: 6, \
title: "OVERDRIVE", \
author: "TWS", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 7, \
title: "", \
author: "QWER", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 8, \
title: "", \
author: "tripleS", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 9, \
title: "like JENNIE", \
author: "", \
alias: [" ", " ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 10, \
title: "Rich Man", \
author: "aespa", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 11, \
title: "I DO ME", \
author: "KiiiKiii", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 12, \
title: "SIGN", \
author: "izna", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 13, \
title: "WICKED", \
author: "ALLDAY PROJECT", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 14, \
title: "Good Thing", \
author: "i-dle", \
alias: ["굿 ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 15, \
title: "0+0", \
author: "", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 16, \
title: "HANDS UP", \
author: "MEOVV", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 17, \
title: "Blue Valentine", \
author: "NMIXX", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 18, \
title: "Flower", \
author: "", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 19, \
title: "Soda Pop", \
author: "Saja Boys", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 20, \
title: "REBEL HEART", \
author: "IVE", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 21, \
title: "GO!", \
author: "CORTIS", \
alias: ["", "!", "GO", "", "!"] \
}
function mq:quiz/macro/setanswer { \
index: 22, \
title: "BEEP", \
author: "izna", \
alias: ["", "", ""] \
}
function mq:quiz/macro/setanswer { \
index: 23, \
title: "Pookie", \
author: "FIFTY FIFTY", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 24, \
title: "DAISIES", \
author: "Justin Bieber", \
alias: ["", "", ""] \
}
function mq:quiz/macro/setanswer { \
index: 25, \
title: " ", \
author: "ILLIT", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 26, \
title: "TOO BAD", \
author: "OfficialGDRAGON", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 27, \
title: " ", \
author: "", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 28, \
title: "STYLE", \
author: "Hearts2Hearts", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 29, \
title: "Good Goodbye", \
author: "", \
alias: ["굿 굿", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 30, \
title: " ", \
author: "10CM", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 31, \
title: "IRIS OUT", \
author: "Kenshi Yonezu", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 32, \
title: "Sugar On My Tongue", \
author: "Tyler, The Creator", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 33, \
title: "Hollywood Action", \
author: "BOYNEXTDOOR", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 34, \
title: "SPAGHETTI", \
author: "LE SSERAFIM", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 35, \
title: "Gabriela", \
author: "KATSEYE", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 36, \
title: "LIKE YOU BETTER", \
author: "", \
alias: [" ", " ", " ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 37, \
title: "", \
author: "BLACKPINK", \
alias: ["jump"] \
}
function mq:quiz/macro/setanswer { \
index: 38, \
title: "CHANEL", \
author: "Tyla", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 39, \
title: " I LOVE YOU", \
author: "BOYNEXTDOOR", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 40, \
title: "earthquake", \
author: "", \
alias: ["", "", ""," "] \
}
function mq:quiz/macro/setanswer { \
index: 41, \
title: "!", \
author: "", \
alias: [""] \
}
function mq:quiz/macro/setanswer { \
index: 42, \
title: "Abracadabra", \
author: "Lady Gaga", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 43, \
title: "", \
author: "", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 44, \
title: "Dirty Work", \
author: "aespa", \
alias: [" ", " ", " ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 45, \
title: "HOT", \
author: "LE SSERAFIM", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 46, \
title: "FAMOUS", \
author: "ALLDAY PROJECT", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 47, \
title: "XOXZ", \
author: "IVE", \
alias: [" ", " ", ""] \
}
function mq:quiz/macro/setanswer { \
index: 48, \
title: "", \
author: "H1-KEY", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 49, \
title: "LOV3", \
author: "", \
alias: ["3", "3"] \
}
function mq:quiz/macro/setanswer { \
index: 50, \
title: "Drive", \
author: "Ed Sheeran", \
alias: ["", ""] \
}
scoreboard players operation song_idx func.temp = index main
scoreboard players remove song_idx func.temp 1
execute store result storage mq:tmp idx int 1 run scoreboard players get song_idx func.temp
function mq:quiz/macro/setanswer with storage mq:tmp
scoreboard players set stop buttons -1
scoreboard players set skip buttons -1