개인 자료란 (JE)

  서버 커뮤니티

Profile 스크립트재미따 대표칭호 없음
Profile

질문하기 스크립트

특정한 위치 블럭을 우클릭하면 메세지가 나오게 하고싶은데

2024.03.16 조회 수 29 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19.2 
게임버전 (BE) 관련없음 
스크립트 버전 2.6.4 

if event-block's location is set:

    set {_location} to event-block's location

    if {_location} is "x: -3.5, y: 73.5, z: -0.5, yaw: 90, pitch: -0 in 'spawn'":

        send "test"

    else:

        send "test1" 라는 구문에서 1번에서     Can't understand this event: 'if event-block's location is set' 라고 오류가 나네요 ..

2개의 댓글

세찐찐
2024.03.16

무슨 이벤트를 쓰셨는지는 모르겠지만 event-block을 사용할수 있는 이벤트라면 해당 구문에서 if event-block’s location is set은 ”해당 블럭에 좌표가 설정이 되있나?“인데 일단 문장 자체가 이상하고 블럭에 좌표는 모두 있습니다, 그러므로 해당 if문을 제거하시면 됩니다

@세찐찐

어찌저찌 잘했는데 on right click on player head:

set {_location} to event-block's location

if {_location} is "x: -3.5, y: 62.5, z: -0.5, yaw: 90, pitch: -0 in 'spawn'":

send "test"

else:

send "test1" 플레이어 헤드까지는 알겠는데 nkawt라는 헤드를 우클릭하면 명령어가 실행되게 하고 싶은데 하는법을 알려주실수 있나요..?

뉴스 및 창작물
/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

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1