전체 datapack 교체 없이 두 파일만 덮어써서 v1.0.19 와 동일 상태로 만들 수 있도록 temp/ 에 수정된 파일과 적용 가이드만 남긴다. - temp/data/mq/function/repeat/buttons/btn_prep.mcfunction - temp/data/mq/function/repeat/buttons/btn.mcfunction - temp/README.md (부분 적용 방법) 이전에 있던 temp/gif.png, gif.png.mcmeta 는 이번 부분 적용 패키지와 무관해서 제거. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
907 B
MCFunction
14 lines
907 B
MCFunction
# 한 button entry 의 optional 필드 기본값을 채워 macro 호출 시 $(arg) 미존재
|
|
# 에러를 방지한다. handler 에서 entry 복사 직후 호출.
|
|
#
|
|
# label : 없으면 "" (빈 문자열) -> btn 안의 text_display 분기는 label
|
|
# 이 "" 이면 스킵.
|
|
# label_color : 기본 "black"
|
|
# label_font : 기본 "minecraft:default"
|
|
# label_scale : 기본 "1.0" (Vector3f 의 한 축, 3축 동일하게 사용됨)
|
|
|
|
execute unless data storage mq:tmp btn.label run data modify storage mq:tmp btn.label set value ""
|
|
execute unless data storage mq:tmp btn.label_color run data modify storage mq:tmp btn.label_color set value "black"
|
|
execute unless data storage mq:tmp btn.label_font run data modify storage mq:tmp btn.label_font set value "minecraft:default"
|
|
execute unless data storage mq:tmp btn.label_scale run data modify storage mq:tmp btn.label_scale set value "1.0"
|