개인 자료란 (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/308/805/003/262x150.crop.jpg?20240605201646

레드스톤

[노트블럭 커버] 팬서비스/mona 【 HoneyWorks 】

노트블럭전문가

2024-06-05

0

/files/thumbnails/288/791/003/262x150.crop.jpg?20240602150002

아티클

《까다로운 시련》 업데이트 날짜 공개 및 정보

학교가기싫다

2024-06-02

0

/files/thumbnails/841/773/003/262x150.crop.jpg?20240526120908

레드스톤

마인크래프트 노트블록버전 『 봄을 고하다 (春を告げる) 』 [더블옥타브 버전]

노트블럭전문가

2024-05-26

0

/files/thumbnails/712/796/003/262x150.crop.jpg?20240525085438

레드스톤

마인크래프트 노트블록으로 만든 『 봄을 고하다 (春を告げる) 』 1

Sonttukk

2024-05-25

1

/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0