Minecraft Wiki
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page describes content that exists only in outdated versions of Minecraft. 
This feature used to be in the game but has since been removed.
Information icon
This feature is exclusive to Bedrock Edition and Minecraft Education. 

Similar to /execute, but executes the command to the executor.

Syntax

executeasself <command: rawText>

Arguments

command: rawText
Specifies the command to be run. Must be a valid command.

Result

Fails if ...
On success, ...


Advertisement