이해도 | 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 상점가기"
이거같습니다
스크립터브혼
2021.02.09iname 말고 name of %inventory% 사용하세요.
민111
2021.02.09if iname contains "&d[ 스카이팜 메뉴 ]":
이거를 if name of %inventory% contains "&d[ 스카이팜 메뉴 ]": 이렇게고치면되나요