Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f5038e4f0 | ||
|
|
75daf5bab9 |
@@ -35,9 +35,12 @@
|
|||||||
# east : ~0.01 ~-1 ~0.5 yaw -90
|
# east : ~0.01 ~-1 ~0.5 yaw -90
|
||||||
# west : ~0.99 ~-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 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
|
$execute if score $(n) buttons matches ..-2 run return 0
|
||||||
|
|
||||||
# ---- 초기화: 블록 + interaction × 3 + text_display 보장 ----
|
# ---- 초기화: 블록 + interaction × 3 + text_display 보장 ----
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# 한 button entry 의 optional 필드 기본값을 채워 macro 호출 시 $(arg) 미존재
|
# 한 button entry 의 optional 필드 기본값을 채워 macro 호출 시 $(arg) 미존재
|
||||||
# 에러를 방지한다. handler 에서 entry 복사 직후 호출.
|
# 에러를 방지한다. handler 에서 entry 복사 직후 호출.
|
||||||
#
|
#
|
||||||
# label : 없으면 "" (빈 문자열) → btn 안의 text_display 분기는 label
|
# label : 없으면 "" (빈 문자열) -> btn 안의 text_display 분기는 label
|
||||||
# 이 "" 이면 스킵.
|
# 이 "" 이면 스킵.
|
||||||
# label_color : 기본 "black"
|
# label_color : 기본 "black"
|
||||||
# label_font : 기본 "minecraft:default"
|
# label_font : 기본 "minecraft:default"
|
||||||
|
|||||||
Reference in New Issue
Block a user