개인 자료란 (JE)

  서버 커뮤니티

Profile seah 대표칭호 없음
Profile

질문하기 스크립트

tpa gui 만들려고하는데 도와주세요 ㅠㅠ

2023.11.20 조회 수 116 추천 수 0
이해도 초보자 
게임버전 (JE) 1.16.5 
게임버전 (BE) 1.16.x 

command /tgui:

    trigger:

        open chest with 3 rows named "&ctgui" to player

        loop 27 times:

            set {_slot} to loop-num - 1

            set slot {_slot} of current inventory of player  to black stained glass pane named "&7"

        set slot 16 of current inventory of player to player head named "&fpleeseah" with lore "&epleeseah님에게로 이동합니다."


on inventory click:

    if name of current inventory of player is "&ctgui":

        cancel event

        if click item type is  player head named "&fpleeseah": 

        execute player command "/tpa pleeseah"

        play sound "ui_button_click" to player


on inventory close:

    if name of current inventory of player is "&ctgui":


 

이걸 누르면 pleeseah로 tpa할수있게 할려고하는데 어디서 틀렸나요?

또는 플레이어 머리로 할수있나요 할수있으면 알려주세요 ㅠㅠ





2개의 댓글

geniusman
2023.12.01

이런걸 원하신거겠죠?

@=tap

command /tpa []:

@trigger:

@@if arg-1 is set:

@@@set {loc.%player%} to arg-1's location

@@@open chest with 3 rows named "&8&lTPA" to player

@@@loop 27 times:

@@@@set {_slot} to loop-num - 1

@@@@set slot {_slot} of current inventory of player to black stained glass pane named " "

@@@set slot 13 of current inventory of player to arg-1's skull named "&f%arg-1%" with lore "&e%arg-1%님에게로 이동합니다."

 

on inventory click:

@if name of event-inventory is "&8&lTPA":

@@cancel event

@@if index of event-slot is 13:

@@@set {_p2} to uncolored name of event-item

@@@replace all "님에게로 이동합니다." and " " with " " in {_p2}

@@@play sound "entity.experience_orb.pickup" at player with pitch 1.4 and volume 1

@@@teleport player to {loc.%player%}

@@@delete {loc.%player%}

@@@message "&a정상적으로 %{_p2}%님에게 이동했습니다."

seah
2023.12.03
@geniusman

좋긴한데 순간이동 가는 사람이 아닌 받는 사람이 수락과 거절을 할수있으면 좋을거같아요

 

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

건축

서울 숭례문(崇禮門) 4

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

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

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

물귀신

2024-10-06

3