/execute
/ Execute The `/execute` command in Minecraft Bedrock Edition is one of the most powerful commands, allowing you to run commands based on specific conditions or actions. Below we’ll explain its basic structure, as well as some common use cases. Command logic: /op [origin] [position] [command] [origin]: The entity or player on which the command is based. [position]: Coordinates where the command will be executed. [command]: The action that will take place. Run a Command at a Specific Player's Location This command allows you to execute an action based on a player’s location. For example, to summon a lightning bolt at a player's position, you would use: /execute positioned ~ ~ ~ as @p run summon lightning_bolt In this case, `@p` refers to the nearest player, and the tilde symbols (`~`) indicate that the command should be executed at the player’s current position. Run a Command Base