Minecraft /execute Generator.
Executes a command on behalf of other entities or under conditions. Ajustez les paramètres ci-dessous pour générer instantanément la bonne syntaxe.
Syntaxe Minecraft Générée
Copiez et collez cette commande dans votre console de jeu Minecraft (touche T) ou dans un bloc de commande.
Que fait cette commande ?
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
- Choose the executor modifier (as <entity> to change who @s is).
- Select the position modifier (at <entity> to shift the execution location to that entity).
- Add conditional filters (if block, unless entity, if score) to gate execution.
- Input the final target command that should execute when conditions are satisfied.
- Copy the generated string into an Impulse, Repeating, or Chain command block.
Parameters & Options Explained
Alters who the command considers to be "@s", without changing the coordinate origin.
Shifts the coordinate origin (~ ~ ~) and rotation to match the target entity.
Tests a game state (e.g. if block ~ ~-1 ~ water) before allowing the command to execute.
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 trueFinds 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
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.