개인 자료란 (JE)

  서버 커뮤니티

Profile wonj59240 대표칭호 없음
Profile

이해도 초보자 
게임버전 (JE) 1.19.2 
게임버전 (BE) 관련없음 
스크립트 버전
스크립트 애드온

options:

    메뉴: &b&l[&2&lMenu&b&l]&f

    설명: &a&l[&6&lMenu Help&a&l]&f

    오류: &4&l[&c&l오류&4&l]&f

    

on load:

    if {메뉴::이름} is not set:

        set {메뉴::이름} to "&a메뉴"

    if {메뉴::줄수} is not set:

        set {메뉴::줄수} to 6

    set {_n} to 0

    loop 54 times:

        if {메뉴::권한::%{_n}%} is not set:

            set {메뉴::권한::%{_n}%} to "player"

        add 1 to {_n}

        

on chat:

    if {메뉴::명령어설정::%player%} is set:

        cancel event

        set {메뉴::명령어::%{메뉴::명령어설정::%player%}%} to "%message%"

        message "{@메뉴} %{메뉴::명령어설정::%player%}%번의 명령어가 &c&l%message%&f로 설정되었습니다."

        delete {메뉴::명령어설정::%player%}

    if {메뉴::이름설정::%player%} is true:

        cancel event

        set {메뉴::이름} to "%colored message%"

        message "{@메뉴} 메뉴 이름이 %colored message%&f으로 설정되었습니다."

        delete {메뉴::이름설정::%player%}

        

on swap hand items:

    if player is sneaking:

        cancel event

        execute player command "메뉴"

        

command /메뉴:

    trigger:

        open chest with {메뉴::줄수} rows named "%{메뉴::이름}%" to player

        set {_n} to 0

        loop {메뉴::줄수}*9 times:

            set slot {_n} of current inventory of player to {메뉴::아이템::%{_n}%}

            add 1 to {_n}

            

command /메뉴설정 [<text>] [<text>] [<text>]:

    trigger:

        if player is op:

            if arg 1 is not set:

                message "{@설명} /메뉴설정 초기화"

                message "{@설명} /메뉴설정 아이템"

                message "{@설명} /메뉴설정 명령어전체삭제"

                message "{@설명} /메뉴설정 이름"

                message "{@설명} /메뉴설정 줄수 [1~6]"

                message "{@설명} /메뉴설정 명령어 [0 ~ 53]"

                message "{@설명} /메뉴설정 명령어삭제 [0 ~ 53]"

                message "{@설명} /메뉴설정 실행권한 [0 ~ 53] [player, op, console]"

            else if arg 1 is "초기화":

                delete {메뉴::*}

                message "{@메뉴} 모든 메뉴설정이 초기화 되었습니다."

                set {메뉴::이름} to "&a메뉴"

                set {메뉴::줄수} to 6

                set {_n} to 0

                loop 54 times:

                    if {메뉴::권한::%{_n}%} is not set:

                        set {메뉴::권한::%{_n}%} to "player"

                    add 1 to {_n}

            else if arg 1 is "아이템":

                open chest with {메뉴::줄수} rows named "%{메뉴::이름}%&c 설정" to player

                set {_n} to 0

                loop {메뉴::줄수}*9 times:

                    set slot {_n} of current inventory of player to {메뉴::아이템::%{_n}%}

                    add 1 to {_n}

            else if arg 1 is "명령어전체삭제":

                delete {메뉴::명령어::*}

            else if arg 1 is "이름":

                set {메뉴::이름설정::%player%} to true

                message "{@메뉴} 메뉴의 이름을 채팅창에 입력해주세요."

            else:

                set {_n} to "%arg 2%" parsed as integer

                if {_n} is not set:

                    message "{@오류} 숫자를 입력해주세요."

                else if {_n} > 53:

                    message "{@오류} 53이하의 입력해주세요."

                else:

                    if arg 1 is "줄수":

                        if {_n} <= 0:

                            message "{@오류} 1~6사이에 숫자를 입력해주세요."

                        else if {_n} > 6:

                            message "{@오류} 1~6사이에 숫자를 입력해주세요."

                        else:

                            set {메뉴::줄수} to {_n}

                            message "{@메뉴} 메뉴 줄 수가 %{_n}%으로 설정되었습니다."

                    else if arg 1 is "명령어":

                        set {메뉴::명령어설정::%player%} to {_n}

                        message "{@메뉴} %{_n}%번 슬롯을 누르면 실행될 명령어를 채팅창에 입력해주세요."

                        message "{@메뉴} 플레이어 입력이 필요할 시 &l[플레이어]&f으로 입력해주세요."

                    else if arg 1 is "명령어삭제":

                        delete {메뉴::명령어::%{_n}%}

                        message "{@메뉴} %{_n}%번 슬롯의 명령어가 삭제되었습니다."

                    else if arg 1 is "실행권한":

                        if arg 3 isn't "player" or "op" or "console":

                            message "{@오류} player, op, console 중 입력해주세요."

                        else:

                            set {메뉴::권한::%{_n}%} to "%arg 3%"

                            message "{@메뉴} %{_n}%번 슬롯의 명령어 권한이 %arg 3%으로 설정되었습니다."

                    else:

                        message "{@오류} 올바른 명령어를 입력해주세요."

                        

on inventory click:

    if name of event-inventory is "%{메뉴::이름}%":

        cancel event

        if {메뉴::명령어::%index of event-slot%} is set:

            set {_command} to {메뉴::명령어::%index of event-slot%}

            replace "[플레이어]" with "%player%" in {_command}

            if {메뉴::권한::%index of event-slot%} is "player":

                execute player command "%{_command}%"

            if {메뉴::권한::%index of event-slot%} is "console":

                execute console command "%{_command}%"

            if {메뉴::권한::%index of event-slot%} is "op":

                make player run command "%{_command}%" as op

                

on inventory close:

    if name of event-inventory is "%{메뉴::이름}%&c 설정":

        set {_n} to 0

        loop 54 times:

            set {메뉴::아이템::%{_n}%} to slot {_n} of current inventory

            add 1 to {_n}



인데 오류좀 해결해주세요 ㅠㅠㅠㅠㅠㅠㅠ 버전을 잘못 만든건지 제발 해결해주세요ㅠㅠㅠㅠㅠㅠㅠㅠㅠ

오류 해결해서 파일 올려주시면 감사하겠습니다!!!

2개의 댓글

환타비
3 시간 전

스크립트 버전이랑 같이 사용하시는 애드온 올려주십셔

코코냐
8 분 전

오류가 어디서 발생하냐요?

뉴스 및 창작물
/files/thumbnails/761/908/003/262x150.crop.jpg?20241025153749

건축

서울 숭례문(崇禮門) 1

KHC

2024-10-25

0

/files/thumbnails/578/899/003/262x150.crop.jpg?20241010142350

건축

경주 월정교 1

KHC

2024-10-10

2

/files/thumbnails/219/899/003/262x150.crop.jpg?20241009200950

건축

송전탑+도시 2

dbasd12

2024-10-09

2

/files/thumbnails/246/898/003/262x150.crop.jpg?20241008102328

레드스톤

단다단 - 오토노케(オトノケ) | 마인크래프트 노트블럭 커버

노트블럭전문가

2024-10-08

1

/files/thumbnails/348/896/003/262x150.crop.jpg?20241006103035

디도스/봇테러등등을 낚는 방법 4

물귀신

2024-10-06

3