개인 자료란 (JE)

  서버 커뮤니티

Profile 뭐이요 대표칭호 없음
Profile

질문하기 스크립트

[스크립트] 죽었을 때 스크립트가 중지 됐으면 좋겠습니다.

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

on walking on diamond block:

    wait 1 seconds

        broadcast "§n 1라운드"

        play sound "ENTITY_PLAYER_LEVELUP" with volume 2 and pitch 1 at player

        summon zombie at the block 4 behind the block 2 under

        summon zombie at the block 6 in front the block 2 under

        wait 6 seconds

        play sound "ENTITY_PLAYER_LEVELUP" with volume 2 and pitch 1 at player

        broadcast "§n2라운드"

        summon zombie at the block 2 left the block 2 in front the block 2 under

        summon zombie at the block 2 left the block 1 under

        summon zombie at the block 2 right the block 2 in front the block 2 under

        summon zombie at the block 2 right the block 1 under

        wait 9 seconds

        play sound "ENTITY_PLAYER_LEVELUP" with volume 2 and pitch 1 at player

        broadcast "§n 3라운드"


제가 대충 이런 식의 웨이브를 만들었는데 플레이어가 죽었을 때 이 구문을 정지시키는 방법이 있을까요?




2개의 댓글

환타비
2023.04.05

그러면 제목처럼 죽었을때라는 구문을 이용하시면 됩니다 on death 이벤트를 이용해서 한번 만들어 보세요!

환타비
2023.04.05
@환타비

조금 예를 들어 보자면 1라운드 시작하고 6초 동안 wait 하는 부분 밑에다가 변수가 세팅이 안되어 있으면 다음구문으로 넘어가고 만약에 세팅이 되어 있으면 종료하는 구문을 쓰면 됩니다!

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

모드

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

학교가기싫다

2024-05-08

1

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

업데이트

마인크래프트 자바 에디션 스냅샷 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