본문으로 건너뛰기
MC COMMANDS logoMC COMMANDS
명령어 빌더

Minecraft /execute Generator.

Executes a command on behalf of other entities or under conditions. 아래 설정을 조정하여 올바른 마인크래프트 문법을 실시간으로 생성하세요.

실시간 터미널 출력

생성된 마인크래프트 문법

이 명령어를 복사하여 마인크래프트 채팅창(T 키)이나 커맨드 블록에 바로 붙여넣으세요.

/give @s diamond 64

이 명령어는 어떤 동작을 하나요?

Executes /execute command for 자신(`@s`).
Documentation & Guide

About the /execute Generator

The /execute generator constructs advanced multi-condition command chains, allowing commands to run from the perspective, location, rotation, or dimension of other entities when specific block or score conditions are met.

How to Use This Generator

  1. Choose the executor modifier (as <entity> to change who @s is).
  2. Select the position modifier (at <entity> to shift the execution location to that entity).
  3. Add conditional filters (if block, unless entity, if score) to gate execution.
  4. Input the final target command that should execute when conditions are satisfied.
  5. Copy the generated string into an Impulse, Repeating, or Chain command block.

Parameters & Options Explained

Executor (as)

Alters who the command considers to be "@s", without changing the coordinate origin.

Position (at)

Shifts the coordinate origin (~ ~ ~) and rotation to match the target entity.

Condition (if/unless)

Tests a game state (e.g. if block ~ ~-1 ~ water) before allowing the command to execute.

Terminating Command (run)

The final action (e.g. effect give, setblock, tp) executed under the modified context.

Practical In-Game Example

Tested & Validated
/execute as @a at @s if block ~ ~-1 ~ minecraft:water run effect give @s speed 5 1 true

Finds every player standing on top of water, shifts position to their feet, verifies the block, and grants a 5-second Speed boost.

Java vs Bedrock Compatibility

Java Edition:Supports all subcommands: as, at, positioned, anchored, rotated, facing, align, in, if/unless (block, blocks, entity, score, data, predicate, loaded), store, and run.
Bedrock Edition:Bedrock 1.19.50+ fully supports modern chained execute syntax (as, at, positioned, rotated, if/unless block/entity/score, run). Legacy single-line execute is deprecated.

Important Limitations & Rules

  • /execute requires a concluding "run <command>" keyword to perform actions.
  • Placing unconstrained /execute commands in Repeating Command Blocks without tag filters can produce severe server TPS lag.
Advertisement