개인 자료란 (JE)

  서버 커뮤니티

Profile Mintae1106 대표칭호 없음
Profile

질문하기 스크립트

스크립트 if level구문

2024.01.18 조회 수 45 추천 수 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/677/856/003/262x150.crop.jpg?20240913205849

아티클

마인크래프트 개발의 미래

학교가기싫다

2024-09-13

1

사진이 없습니다.

모드

아이리스 쉐이더

gyeol12

2024-09-07

0

/files/thumbnails/382/873/003/262x150.crop.jpg?20240903125347

레드스톤

[노트블럭커버] 숙청행진 - 밀그램

노트블럭전문가

2024-09-03

0

/files/thumbnails/069/864/003/262x150.crop.jpg?20240819102737

레드스톤

[노트블럭커버] 만찬가 - tuki

노트블럭전문가

2024-08-19

1

/files/thumbnails/647/816/003/262x150.crop.jpg?20240619112336

건축

숭례문(프리퀄) 4

KHC

2024-06-19

1