From 75daf5bab9cd5d15a7c60c4250f0b7734ecc1d9b Mon Sep 17 00:00:00 2001 From: "Claude (owner)" Date: Sun, 17 May 2026 04:17:58 +0900 Subject: [PATCH] =?UTF-8?q?music=5Fquiz:=20=EB=B2=84=ED=8A=BC=20=EB=B9=84?= =?UTF-8?q?=ED=99=9C=EC=84=B1=20=EB=B6=84=EA=B8=B0=EC=97=90=EC=84=9C=20dat?= =?UTF-8?q?a=20modify=20entity=20=EB=8B=A8=EC=9D=BC=20=EB=8C=80=EC=83=81?= =?UTF-8?q?=20=EC=A0=9C=EC=95=BD=20=ED=9A=8C=ED=94=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit interaction 이 버튼당 3개가 된 이후 (v1.0.16+) `data modify entity @e[...] response set value 0b` 가 다중 대상 에러로 실패. 어차피 비활성 시점에 버튼 블록은 air 로 바꾸므로 interaction 과 text_display 도 함께 kill 하는 게 일관적 — 라벨이 stale 로 남는 것도 방지. --- music_quiz/data/mq/function/repeat/buttons/btn.mcfunction | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/music_quiz/data/mq/function/repeat/buttons/btn.mcfunction b/music_quiz/data/mq/function/repeat/buttons/btn.mcfunction index e27c56b..d5c0805 100644 --- a/music_quiz/data/mq/function/repeat/buttons/btn.mcfunction +++ b/music_quiz/data/mq/function/repeat/buttons/btn.mcfunction @@ -35,9 +35,12 @@ # east : ~0.01 ~-1 ~0.5 yaw -90 # west : ~0.99 ~-1 ~0.5 yaw 90 -# ---- 비활성: 버튼 제거 + interaction 응답 차단 후 종료 ---- +# ---- 비활성: 블록 + interaction × 3 + text_display 전부 제거 후 종료 ---- +# data modify entity @e[...] 는 대상 1개 강제 → interaction 3개 모드에선 +# 못 쓰므로 그냥 kill. 어차피 버튼 블록도 air 로 바꾸므로 라벨도 같이 제거. $execute if score $(n) buttons matches ..-2 run setblock $(x) $(y) $(z) minecraft:air -$execute if score $(n) buttons matches ..-2 run data modify entity @e[type=minecraft:interaction,tag=mq,tag=$(n)] response set value 0b +$execute if score $(n) buttons matches ..-2 run kill @e[type=minecraft:interaction,tag=mq,tag=$(n)] +$execute if score $(n) buttons matches ..-2 run kill @e[type=minecraft:text_display,tag=mq,tag=$(n)] $execute if score $(n) buttons matches ..-2 run return 0 # ---- 초기화: 블록 + interaction × 3 + text_display 보장 ----