EPQK 3b485c86c8f34cd4bd4808e789b91f85
게임버전 (JE) | 1.17.1 |
---|---|
게임버전 (BE) | 관련없음 |
스크립트 버전 | 가장 최신 |
command /채팅색깔:
trigger:
if player is op:
open chest with 3 rows named "&l채팅 색깔 바꾸기" to player
set slot 10 of current inventory of player to red dye named "&4빨간색"
set slot 11 of current inventory of player to orange dye named "&6주황색"
set slot 12 of current inventory of player to yellow dye named "&e노란색"
set slot 13 of current inventory of player to lime dye named "&a연두색"
set slot 14 of current inventory of player to blue dye named "&1파란색"
set slot 15 of current inventory of player to light blue dye named "&b하늘색"
set slot 16 of current inventory of player to white dye named "&f하얀색" with lore "- 색깔 초기화"
else:
message "&4이 명령어를 사용 할 권한이 없습니다"
on inventory click:
if inventory name is "&l채팅 색깔 바꾸기":
cancel event
if clicked slot is 10:
set {채팅색깔.%uuid of player%} to "&4"
message "%{채팅색깔.%uuid of player%}%채팅 색깔을 바꿨습니다"
if clicked slot is 11:
set {채팅색깔.%uuid of player%} to "&6"
message "%{채팅색깔.%uuid of player%}%채팅 색깔을 바꿨습니다"
if clicked slot is 12:
set {채팅색깔.%uuid of player%} to "&e"
message "%{채팅색깔.%uuid of player%}%채팅 색깔을 바꿨습니다"
if clicked slot is 13:
set {채팅색깔.%uuid of player%} to "&a"
message "%{채팅색깔.%uuid of player%}%채팅 색깔을 바꿨습니다"
if clicked slot is 14:
set {채팅색깔.%uuid of player%} to "&1"
message "%{채팅색깔.%uuid of player%}%채팅 색깔을 바꿨습니다"
if clicked slot is 15:
set {채팅색깔.%uuid of player%} to "&b"
message "%{채팅색깔.%uuid of player%}%채팅 색깔을 바꿨습니다"
if clicked slot is 16:
set {채팅색깔.%uuid of player%} to "&f"
message "%{채팅색깔.%uuid of player%}%채팅 색깔을 바꿨습니다"
이렇게 채팅 색깔 설정하는 gui를 만들었습니다
근데 리로드하면
"an internal error occurred while attempting to perform this command"
이라는 문구가 뜨고 스크립트가 작동하지 않습니다
if inventory name is "&l채팅 색깔 바꾸기":
이부분을 지워봤더니 또 잘돼네요
뭐가 문젤까요
거너아나
2021.10.24if name of player's current inventory is "":