music_quiz: YP/TS 플러그인 의존 제거, 바닐라 playsound + painting_variant 로 마이그레이션
minecraft_launcher 가 만드는 musicquiz 리소스팩 (track_NN / cover_NN) 과 한 쌍으로 동작한다. - 음원 재생: yp playall (명령 블록 + auto 토글) → /playsound musicquiz:track_NN - 정답 이미지: ts placeloc → /summon painting (musicquiz:cover_NN) + /kill @e[type=painting,tag=mq_cover] - stopsound 하드코딩(weather) 4곳을 mq:quiz/stop_sound 매크로 호출로 통일 - check/server, repeat/check_server, status 스코어보드(yp/ts/skript) 등 플러그인 hello 패킷 대기 로직 일괄 삭제 - 스토리지 재구성: command_block 컴파운드 폐기, audio/image/marker 분리 (init/config.mcfunction 한 곳에서 수정) - 곡 단위 volume override 지원 — songs[i].volume 으로 곡별 음량 지정 가능 (미지정 시 audio.volume fallback) - 트랙 번호 zero-pad 는 mq:tmp.pad 분기 + 매크로 문자열 조립으로 처리 - max_index 는 songs 배열 길이에서 자동 계산 - 호출 경로 단축: select → setanswer → macro/setanswer → macro/summon → play_sound
This commit is contained in:
1
music_quiz/data/mq/function/images/clear.mcfunction
Normal file
1
music_quiz/data/mq/function/images/clear.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
kill @e[type=minecraft:painting,tag=mq_cover]
|
||||
@@ -1,3 +0,0 @@
|
||||
$data modify storage mq:main command_block.image set value "ts placeloc song$(index).jpg world SOUTH $(x1) $(y1) $(z1) $(x2) $(y2) $(z2) 1 솔리드스킵"
|
||||
|
||||
function mq:images/image_set with storage mq:main command_block
|
||||
@@ -1,4 +0,0 @@
|
||||
$data modify block $(x) $(y) $(z) Command set value "ts removeall"
|
||||
|
||||
$data modify block $(x) $(y) $(z) auto set value 1b
|
||||
$data modify block $(x) $(y) $(z) auto set value 0b
|
||||
@@ -1,4 +0,0 @@
|
||||
$data modify block $(x) $(y) $(z) Command set value "$(image)"
|
||||
|
||||
$data modify block $(x) $(y) $(z) auto set value 1b
|
||||
$data modify block $(x) $(y) $(z) auto set value 0b
|
||||
1
music_quiz/data/mq/function/images/macro/show.mcfunction
Normal file
1
music_quiz/data/mq/function/images/macro/show.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
$summon minecraft:painting $(x) $(y) $(z) {variant:"$(namespace):$(cover)",facing:$(facing)b,Tags:["mq","mq_cover"]}
|
||||
3
music_quiz/data/mq/function/images/show.mcfunction
Normal file
3
music_quiz/data/mq/function/images/show.mcfunction
Normal file
@@ -0,0 +1,3 @@
|
||||
data modify storage mq:tmp painting set from storage mq:main image
|
||||
data modify storage mq:tmp painting.cover set from storage mq:main answer.cover
|
||||
function mq:images/macro/show with storage mq:tmp painting
|
||||
Reference in New Issue
Block a user