개인 자료란 (JE)

  서버 커뮤니티

Profile 민111 대표칭호 없음
Profile

질문하기 스크립트

스크립트 오류

2021.02.09 조회 수 195 추천 수 0
이해도 1.16 
게임버전 (JE) 페이퍼 
게임버전 (BE) SkChoke InvSk skUtilities skRayFall SkQuery TusKe 적용되있습니다 
스크립트 애드온 2.5.3 

in 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, only if this inventory has an InventoryHolder may it be used in this state이게자꾸인벤토리에서 아이템을 클릭하면 뜹니다  문제코드는


command /gui:

    trigger:

        open chest with 6 rows named "&d[ 스카이팜 메뉴 ]" to player

        set slot 0 of current inventory of player to black stained glass pane named "벽"

        set slot 1 of current inventory of player to black stained glass pane named "벽"

        set slot 2 of current inventory of player to black stained glass pane named "벽"

        set slot 3 of current inventory of player to black stained glass pane named "벽"

        set slot 4 of current inventory of player to black stained glass pane named "벽"

        set slot 5 of current inventory of player to black stained glass pane named "벽"

        set slot 6 of current inventory of player to black stained glass pane named "벽"

        set slot 7 of current inventory of player to black stained glass pane named "벽"

        set slot 8 of current inventory of player to black stained glass pane named "벽"

        set slot 45 of current inventory of player to black stained glass pane named "벽"

        set slot 46 of current inventory of player to black stained glass pane named "벽"

        set slot 47 of current inventory of player to black stained glass pane named "벽"

        set slot 48 of current inventory of player to black stained glass pane named "벽"

        set slot 49 of current inventory of player to black stained glass pane named "벽"

        set slot 50 of current inventory of player to black stained glass pane named "벽"

        set slot 51 of current inventory of player to black stained glass pane named "벽"

        set slot 52 of current inventory of player to black stained glass pane named "벽"

        set slot 53 of current inventory of player to black stained glass pane named "벽"

        

        set slot 19 of current inventory of player to ender pearl named "&e스폰가기"

        set slot 21 of current inventory of player to grass block named "&e섬"

        set slot 23 of current inventory of player to white wool named "&e상점"

on rightclick with nether star:

    execute player command "/gui"

on inventory click:

    if iname contains "&d[ 스카이팜 메뉴 ]":

        cancel event

        if clicked raw slot is 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53:

            execute player command "/gui"

        if clicked raw slot is 19:

            execute player command "/warp 스폰"

        if clicked raw slot is 21:

            execute player command "/sum"

        if clicked raw slot is 23:

            execute player command "/warp 상점가기"

이거같습니다

2개의 댓글

스크립터브혼
2021.02.09

iname 말고 name of %inventory% 사용하세요.

민111
2021.02.09
@스크립터브혼

if iname contains "&d[ 스카이팜 메뉴 ]":

 

이거를 if name of %inventory% contains "&d[ 스카이팜 메뉴 ]": 이렇게고치면되나요

뉴스 및 창작물
/files/thumbnails/150/925/003/262x150.crop.jpg?20241123005717

건축

응답하라 1988 ?

팀뉴일리시

2024-11-23

3

/files/thumbnails/761/908/003/262x150.crop.jpg?20241025153749

건축

서울 숭례문(崇禮門) 5

KHC

2024-10-25

2

/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