/execute

치트 / 관리자 2자바 26.3

다른 개체로서, 다른 위치에서, 또는 조건을 충족할 때만 다른 명령어를 실행합니다. 기본 형태는 /execute if biome <pos> <biome>이며, 문법 형태 17개와 인수 27개가 있습니다. 권한: 치트 / 관리자 2.

사용 가능 대상
치트 / 관리자 2
문법 형태
17
인수
27

/execute 문법

게임 데이터

게임이 받아들이는 모든 형태입니다. <꺾쇠괄호> 안의 단어는 직접 채우는 인수이고, 나머지는 그대로 입력합니다.

/execute if biome <pos> <biome>
/execute if block <pos> <block>
/execute if blocks <start> <end> <destination> all
/execute if blocks <start> <end> <destination> masked
/execute if data block <source> <path>
/execute if data entity <source> <path>
/execute if data storage <source> <path>
/execute if dimension <dimension>
/execute if entity <entities>
/execute if items block <source> <slots> <item_predicate>
/execute if items entity <source> <slots> <item_predicate>
/execute if loaded <pos>
/execute if predicate <predicate>
/execute if score <target> <targetObjective> < <source> <sourceObjective>
/execute if score <target> <targetObjective> <= <source> <sourceObjective>
/execute if score <target> <targetObjective> = <source> <sourceObjective>
/execute if score <target> <targetObjective> > <source> <sourceObjective>

일부 분기는 /execute의 run처럼 다른 명령어의 문법으로 이어집니다(…로 표시).

/execute 예시

바로 붙여 넣을 수 있는 예시입니다(치트 필요). @s는 나, @p는 가장 가까운 플레이어, @a는 모든 플레이어, @e는 모든 개체입니다.

/execute as @a at @s run summon minecraft:firework_rocket ~ ~1 ~
모든 플레이어 위로 폭죽을 쏘아 올립니다.
/execute if block ~ ~-1 ~ minecraft:gold_block run say Gold!
금 블록 위에 서 있으면 "Gold!"라고 말합니다.

/execute 인수

각 인수에 들어갈 값과 게임이 적용하는 제한입니다.

/execute 인수
인수입력값제한
<axes>축 (x, y, z 중 아무거나)—
<anchor>eyes 또는 feet—
<targets>대상 선택자 또는 플레이어 이름 (@s, @p, @a, @e, @r)하나 이상
<pos>위치 (x y z, 소수 허용)—
<biome>게임 ID 또는 #태그worldgen/biome
<block>블록 ID 또는 #태그, [상태] 선택 사항—
<start>블록 좌표 (x y z, ~ 상대, ^ 로컬)—
<end>블록 좌표 (x y z, ~ 상대, ^ 로컬)—
<destination>블록 좌표 (x y z, ~ 상대, ^ 로컬)—
<source>블록 좌표 (x y z, ~ 상대, ^ 로컬)—
<path>NBT 경로—
<dimension>차원 (minecraft:overworld, the_nether, the_end)—
<entities>대상 선택자 또는 플레이어 이름 (@s, @p, @a, @e, @r)하나 이상
<name>함수 ID 또는 #태그—
<slots>슬롯 출처—
<item_predicate>아이템 ID 또는 #태그, 구성 요소 선택 사항—
<predicate>조건자 ID—
<target>점수 보유자 (선택자, 이름 또는 *)대상 하나
<targetObjective>스코어보드 목표 이름—
<sourceObjective>스코어보드 목표 이름—
<range>숫자 범위 (예: 1..5)—
<id>네임스페이스 ID (minecraft:…)—
<heightmap>높이 맵 유형—
<rot>회전 (yaw pitch)—
<scale>숫자—
<objective>스코어보드 목표 이름—
<entity>레지스트리의 게임 IDentity_type

관련 명령어

데이터: 마인크래프트 자바 에디션 26.3 게임 파일 데이터 출처

다른 개체로서, 다른 위치에서, 또는 조건을 충족할 때만 다른 명령어를 실행합니다. 문법 형태 17개가 있으며, 사용 가능 대상: 치트 / 관리자 2.

관련 항목

🔍

정확성 유지를 도와주세요! 잘못된 통계, 누락된 데이터 또는 문제를 발견하면 피드백을 보내주세요. 커뮤니티 전체의 데이터 품질 향상에 직접적으로 도움이 됩니다.

문제 신고

/execute 자주 묻는 질문 (자바 26.3)

마인크래프트에서 /execute은(는) 무엇을 하나요?

다른 개체로서, 다른 위치에서, 또는 조건을 충족할 때만 다른 명령어를 실행합니다.

/execute의 문법은?

기본 형태는 /execute if biome <pos> <biome>입니다. 모든 형태는 위에 정리되어 있습니다.

/execute의 예시는?

/execute as @a at @s run summon minecraft:firework_rocket ~ ~1 ~ — 모든 플레이어 위로 폭죽을 쏘아 올립니다.

/execute을(를) 쓰려면 치트가 필요한가요?

네: 치트 / 관리자 2. 싱글플레이에서는 치트 허용을 켜세요(또는 치트를 켜고 LAN에 열기).