개인 자료란 (JE)

  서버 커뮤니티

Profile 갓큐 대표칭호 없음
Profile

질문하기 스크립트

한 스크립트 내 여러 종류의 이벤트 발생 가능한가요

2024.06.29 조회 수 59 추천 수 0
이해도 초보자 
게임버전 (JE) 관련없음 
게임버전 (BE) 관련없음 

command /귀환:

    permission: operator.set

    trigger:

        give 1 of paper named "&a귀환서" with lore "&c스폰으로 귀환합니다." to player

        send "&a귀환서를 지급했습니다." to player


on rightclick with paper:

    event-item's name contain "&a귀환서":

        send "&65초 뒤에 귀환합니다, 피해를 받으면 취소됩니다." to player

        set {return.%player's uuid%} to true

        wait 5 seconds

        {return.%player's uuid%} is false:

            send "&c귀환이 취소 되었습니다." to player

            stop

        teleport player to location(-17.5,63,92.5,world("world"),0,0)

        send "&a스폰으로 귀환했습니다." to player

        remove 1 of player's tool from player's tool




외부에서 공유받은 스크립트를 기반으로
일부 수정하며 공부하고있습니다.

혹시 위 과정에서

'귀환서1' 에 대한 좌표반응과
'귀환서2' 에 대한 좌표반응을 다르게하여
두종류의 귀환서를 운용할수 있을까요 ? 

1개의 댓글

환타비
2024.06.29

command 로 귀환서 2를 만드는 작업을 하고

 

on rightclick with paper:

event-item's name contain "&a귀환서":

send "&65초 뒤에 귀환합니다, 피해를 받으면 취소됩니다." to player

set {return.%player's uuid%} to true

wait 5 seconds

{return.%player's uuid%} is false:

send "&c귀환이 취소 되었습니다." to player

stop

teleport player to location(-17.5,63,92.5,world("world"),0,0)

send "&a스폰으로 귀환했습니다." to player

remove 1 of player's tool from player's tool

event-item's name contain "&a귀환서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

/files/thumbnails/839/895/003/262x150.crop.jpg?20241006021227

SRV레코드는 보안도메인이 아닙니다. [서버오픈시 필독]

물귀신

2024-10-05

4