jackoqp a392bd442f034ee6b45a6302a5010b49
이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.19.4 |
게임버전 (BE) | 1.19.x |
스크립트 버전 | 2.7.0-beta3 |
스크립트 애드온 | 에드온 다 있음 |
on rightclick on entity:
if entity's name is "상점":
open chest with 1 rows named "상점" to player
set slot 1 of current inventory of player to Diamond pickaxe named "도구상점"
set slot 2 of current inventory of player to End crystal named "pvp상점"
set slot 3 of current inventory of player to Barrier named "후원상점"
set slot 4 of current inventory of player to Redstone named "회로상점"
set slot 5 of current inventory of player to Diamond named "광물상점"
set slot 6 of current inventory of player to Barrier named "전리품상점"
set slot 7 of current inventory of player to Wheat named "농장상점"
on inventory click:
if name of event-inventory is "도구상점":
if clicked raw slot is 1:
cancel event
여기까지 했는데 다음꺼를 모르겠습니다 사실 이게 맞는지도 모릅니다.. 제가 하고싶은거는 GUI를 열고 도구상점이라는 아이템을 클릭하면 다음 창이 열리게 하고싶습니다 도와주세요ㅜㅜ
환타비
2023.08.24on inventory click:
@if name of current inventory is "상점":
@@cancel event
@@if "%index of clicked slot%" is "1":
@@@open chest with 1 rows named "도구상점" to player
@@@set slot ~ ~~ ~
이런식으로 하시면 됩니다!
jackoqp
2023.08.24감사합니다ㅜㅜㅜ