개인 자료란 (JE)

  서버 커뮤니티

Profile DrownPole 정품인증자

gongbaek04 2b816a5b5b4c41cf9c7fd4bce3827fe1

Profile

질문하기 스크립트

플레이가 바라보는 방향의 플레이어 인식

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

on damage:

    if attacker is player:

        if attacker's tool is book named "&4&l감옥보내기" with lore "&f때린 플레이어를 감옥으로 보냅니다.":

            cancel event

            set {감옥번호} to random integer between 1 and 8

            if {감옥번호} is 1:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 163 46 620"

                wait 3 ticks

                deop victim

            if {감옥번호} is 2:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 156 46 635"

                wait 3 ticks

                deop victim

            if {감옥번호} is 3:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 139 46 636"

                wait 3 ticks

                deop victim

            if {감옥번호} is 4:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 122 46 620"

                wait 3 ticks

                deop victim

            if {감옥번호} is 5:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 123 46 613"

                wait 3 ticks

                deop victim

            if {감옥번호} is 6:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 131 46 597"

                wait 3 ticks

                deop victim

            if {감옥번호} is 7:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 148 46 595"

                wait 3 ticks

                deop victim

            if {감옥번호} is 8:

                op victim

                execute victim command "/로비"

                execute console command "/tp %victim% 163 46 603"

                wait 1 ticks

                deop victim


여기서 damage 구문이 아닌 플레이어가 바라보는 방향의 플레이어를 인식하고 싶은데 어떻게 해야할까요??

감옥 보내기권 우클릭 했을때 바라보는 플레이어를 감옥으로 보내게 하고싶은데 방법이 있을까요




3개의 댓글

코코냐
2024.02.17

타겟 or 레이트레이싱

https://docs.skunity.com/syntax/search/id:11224

DrownPole
2024.02.17
@코코냐

Target은 활이나 삼지창같은거에만 해당되는거 아닌가요?? 플레이어가 바라보고있는 상대를 지정할수있나요?

코코냐
2024.02.17
@DrownPole

"or"

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

0

/files/thumbnails/384/778/003/262x150.crop.jpg?20240507003327

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1

/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0