mojira.dev
MCPE-20615

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.

http://i.imgur.com/EfP23z1.png

Attachments

Comments 9

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

@unknown still a valid bug, @unknown

What I expect: As with Java, whether or not a command is preceded with a slash should not affect how it runs.

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.

SirBenet

(Unassigned)

63373

Confirmed

Windows

Windows 10

/execute, command

1.0.5.54, 1.0.7.0, 1.1.0.9

1.4.2.0

Retrieved