Commands in execute "fail to execute" when a slash is used
What I expect: As with Java, whether or not a command is preceded with a slash should not affect how it runs.
What happens: Commands preceded by a slash cannot be used in `/execute`. A vague error message of "Failed to execute X as Y" is given.
Created Issue:
Commands in execute "fail to execute" when a slash is used
What I expect: As with Java, whether or not a command is preceded with a slash should not affect how it runs.
What happens: Commands preceded by a slash cannot be used in `/execute`. A vague error message of "Failed to execute X as Y" is given.
- Unresolved
- Open
- Unconfirmed
- Windows
- Windows 10
- 1.0.5.54
Added Attachments:
Added ADO: 63373
Added Fixed Versions: 1.4.2.0
Sorry, my bad, was thinking too much about MCPE-20615.

If you put the second part in a chain command block ahead of it it will work
The second part shouldn't have a slash
Wheaton still a valid bug, Anomonous Anomonous
I'm not talking about the slash at the beginning , I'm talking about the slash in the middle.
This is no longer allowed in Java 1.13. Not going to comment on whether or not this should still be fixed.
Thank you for your report!
However, this issue is Working as Intended.
While a command in a command block may optionally be preceded by "/", the inner command within an execute command is not a separate command in this context; it is part of the execute command. As a rule of thumb, the only place you can optionally put a "/" in a command block is at the start of the input box.
Full Version History – Feature Requests and Suggestions
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
@Auldrick
Checking the latest beta, it appears that this has already been fixed (or consistent with Java 1.12 at least) and the slash is now optional in the inner command.
Per comments, although the ability to use the inner "/" was removed from Java, it was apparently added to Bedrock in 1.4. Reopened so that it can be closed with the correct fix version.