개인 자료란 (JE)

  서버 커뮤니티

Profile 민규사마 대표칭호 없음
Profile

질문하기 스크립트

전직 스크립트 질문

2020.12.22 조회 수 142 추천 수 0

options:

    j : &6[&e전직&6]&f


on right click on entity with nether star:

    if name of player's tool contains "&d초월석":

        if entity's name is "&6전직관":

            if {직업.%player%} is not set:

                open chest with 3 rows named "&e전직선택" to player

                set slot 10 of current inventory of player to diamond sword named "&e검객" with lore "&f초월석과 교환시 전직" 

                set slot 13 of current inventory of player to diamond axe named "&4전사" with lore "&f초월석과 교환시 전직" 

                set slot 16 of current inventory of player to diamond hoe named "&9닌자" with lore "&f초월석과 교환시 전직" 




on inventory click:

    if iname contains "&e직업선택":

        if click type is left mouse button with shift or right mouse button with shift:

            cancel event

        else:

            if clicked raw slot is 10:

                if {직업.%player%} is not set:

                    close player's inventory

                    wait 1 tick

                    remove 1 of nether star named "&d초월석" from the player

                    wait 1 tick

                    set {직업.%player%} to "검객"

                    message "&6---------------------------------"

                    message "{@j}&f당신은 &e검객&f이 되었습니다!"

                    message "&6---------------------------------"

이런 전직 스크립트를 썻는데 gui창에서 클릭하면 아무것도 실행되지않고 아이템만 꺼내지네요 어떻해 해야하나요?

Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견 3

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1