이해도 | 초보자 |
---|---|
게임버전 (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할수있게 할려고하는데 어디서 틀렸나요?
또는 플레이어 머리로 할수있나요 할수있으면 알려주세요 ㅠㅠ
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좋긴한데 순간이동 가는 사람이 아닌 받는 사람이 수락과 거절을 할수있으면 좋을거같아요