22 lines
1.4 KiB
MCFunction
22 lines
1.4 KiB
MCFunction
# 음악퀴즈 주제 — tellraw 접두사([ 이름 ])와 사이드바 표시에 사용
|
|
data modify storage mq:main title set value "음악퀴즈"
|
|
|
|
# 플레이어 접속 시 텔레포트 위치 (x y z, r=yaw, f=pitch)
|
|
data modify storage mq:main spawn set value {x: 2769, y: 85, z: 5963, r: 0, f: 0}
|
|
|
|
# 음원 재생 — minecraft_launcher 리소스팩의 musicquiz:track_NN 사운드 이벤트
|
|
# namespace — 리소스팩 네임스페이스 (기본 "musicquiz")
|
|
# source — /playsound 채널. stopsound 와 동일해야 함. 노래는 "player" 채널로
|
|
# 재생 (음성/플레이어 채널 슬라이더로 음량 제어).
|
|
# volume — 기본 음량. 곡별 override 는 init/songs.mcfunction 의 volume 필드 사용
|
|
# pitch — 1.0 = 원본 속도
|
|
data modify storage mq:main audio set value {namespace: "musicquiz", source: "player", volume: 1.0, pitch: 1.0}
|
|
|
|
# 정답 페인팅 — 데이터팩의 mq:cover_NN painting_variant (텍스처는 리소스팩 musicquiz:cover_NN)
|
|
# namespace — painting_variant 네임스페이스 (기본 "mq")
|
|
# x,y,z — 페인팅 entity 좌표 (벽면 앞쪽 블록 위치)
|
|
# facing — 페인팅이 바라보는 방향: south=0 / west=1 / north=2 / east=3
|
|
data modify storage mq:main image set value {namespace: "mq", x: 2775, y: 85, z: 5982, facing: 2b}
|
|
|
|
# 곡 개수 max_index 는 init/songs.mcfunction 의 길이로 자동 계산됨
|