이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.20.1 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.8.6 |
스크립트 애드온 | Skellett-2.0.9, SkQuery-4.1.10 |
유튜브랑 구글 보면서 gui 창을 만들었는데 이게 이상하게 스크립트를 빼도 gui가 계속 열려요..
왜 이럴까요..?
#gui로 이동하기
on swap hand items:
player is sneaking
cancel event
open chest with 6 row named "&c&l메뉴" to player
set {_solt} to 0
loop 54 times:
set slot {_solt} of current inventory of player to black stained glass pane
add 1 to {_solt}
set slot 10 of current inventory of player to grass block with lore "&a마을로 이동합니다." named "&r&f마을"
set slot 12 of current inventory of player to furnace with lore "&a공장으로 이동합니다." named "&r&f공장"
set slot 39 of current inventory of player to command block with lore "&a명령어를 보여줍니다." named "&r&f명령어 도움말"
set slot 41 of current inventory of player to clock with lore "&a아침으로 변경합니다." named "&r&f시간변경"
set slot 43 of current inventory of player to sunflower with lore "&a맑은날로 변경합니다." named "&r&f날씨변경"
on inventory click:
if inventory name is "&c&l메뉴":
cancel event
if click type is left mouse button:
if clicked raw slot is 10:
execute player command "/이동 마을"
else if clicked raw slot is 12:
execute player command "/이동 공장"
else if clicked raw slot is 39:
execute player command "/명령어"
else if clicked raw slot is 41:
execute console command "/time set day"
else if clicked raw slot is 43:
execute console command "/weather clear"
mozipeach
2024.06.12서버 리로드 하니까 오류가 풀렸어요...ㅎ