# 버튼 정의. 각 항목 의미: # n : 이름 (= 트리거/태그) x,y,z : 버튼 블록 좌표 f : facing # c : 클릭 시 실행 명령 (init=0 직접, 그 외 trigger $(n) 투표) # ox,oy,oz : interaction entity 소환 위치 오프셋 (블록 좌표 기준) # w,h : interaction width / height (float) # # stone_button[face=wall] hitbox: 가로 6/16 (0.375), 세로 4/16 (0.25), # 두께 2/16 (0.125), 벽 반대편으로만 튀어나옴. interaction 의 horizontal # hitbox 는 width × width 정사각형 강제 → width 를 가로(0.375) 에 맞추고 # 위치 보정으로 "튀어나온 쪽 면 = visible face" 가 되게 함. 반대편은 # 벽 블록 속으로 들어가 invisible. # # facing 별 오프셋: # south : ox=0.5 oy=0.375 oz=-0.0625 # north : ox=0.5 oy=0.375 oz=1.0625 # east : ox=-0.0625 oy=0.375 oz=0.5 # west : ox=1.0625 oy=0.375 oz=0.5 data modify storage mq:main button_defs set value [] data modify storage mq:main button_defs append value {n:"start", x:140, y:62, z:-225, f:"south", c:"function mq:commands/start with storage mq:main", ox:"0.5", oy:"0.375", oz:"-0.0625", w:"0.375", h:"0.25"} data modify storage mq:main button_defs append value {n:"stop", x:142, y:62, z:-225, f:"south", c:"function mq:commands/stop with storage mq:main", ox:"0.5", oy:"0.375", oz:"-0.0625", w:"0.375", h:"0.25"} data modify storage mq:main button_defs append value {n:"skip", x:144, y:62, z:-225, f:"south", c:"function mq:commands/skip", ox:"0.5", oy:"0.375", oz:"-0.0625", w:"0.375", h:"0.25"} data modify storage mq:main button_defs append value {n:"hint", x:146, y:62, z:-225, f:"south", c:"function mq:commands/hint", ox:"0.5", oy:"0.375", oz:"-0.0625", w:"0.375", h:"0.25"} data modify storage mq:main button_defs append value {n:"replay", x:148, y:62, z:-225, f:"south", c:"function mq:commands/replay", ox:"0.5", oy:"0.375", oz:"-0.0625", w:"0.375", h:"0.25"} data modify storage mq:main button_defs append value {n:"test", x:144, y:62, z:-213, f:"north", c:"function mq:commands/test", ox:"0.5", oy:"0.375", oz:"1.0625", w:"0.375", h:"0.25"}