개인 자료란 (JE)

  서버 커뮤니티

Profile Mintae1106 대표칭호 없음
Profile

질문하기 스크립트

스크립트 if level구문

2024.01.18 조회 수 24 추천 수 0
이해도 중급자 
게임버전 (JE) 1.19.4 
게임버전 (BE) 관련없음 

    if entity's name is "&7동굴입구 관리인 케브":

        if player's exp level is greater than or equal to 100:

            execute player command "mvtp %player% level3"

            send title "§7화산동굴 리케바이" with subtitle "100레벨 구역" to player for 3 seconds

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

        else: execute player command "tellraw %player% {"text":"100레벨 이하 출입금지 구역입니다","color":"red"}"

   인데 문제가있어 작동을 안합니다 혹시뭔가요?




2개의 댓글

코코냐
2024.01.18

if, else중 어느쪽도 작동하지 않는다면 그 위 if문 자체가 동작하지 않았을 가능성이 높습니다.

슈퍼레몬
2024.01.19
if player's exp level is greater than or equal to 100:

를 

if player's level >= 100:

으로 해주시면 될것입니다.

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