[MCPE-20615] Commands in execute "fail to execute" when a slash is used Created: 28/Mar/17 Updated: 04/Jun/18 Resolved: 04/Jun/18 |
|
| Status: | Resolved |
| Project: | Minecraft (Bedrock codebase) |
| Component/s: | None |
| Affects Version/s: | 1.0.5.54, 1.0.7.0, 1.1.0.9 |
| Fix Version/s: | 1.4.2.0 |
| Type: | Bug | ||
| Reporter: | SirBenet | ||
| Resolution: | Fixed | Votes: | 4 |
| Labels: | /execute, command | ||
| Attachments: |
|
| Confirmation Status: | Confirmed |
| Platform: | Windows |
| CHK: | |
| ADO: | 63373 |
| Description |
|
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 |
| Comments |
| Comment by [MCPE Mod] Auldrick [ 03/Jun/18 ] |
|
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. |
| Comment by SirBenet [ 03/Jun/18 ] |
|
@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. |
| Comment by [MCPE Mod] Auldrick [ 03/Jun/18 ] |
|
Thank you for your report! 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: |
| Comment by [Mod] tryashtar [ 21/Jan/18 ] |
|
This is no longer allowed in Java 1.13. Not going to comment on whether or not this should still be fixed. |
| Comment by Anomonous Anomonous [ 06/Apr/17 ] |
|
I'm not talking about the slash at the beginning , I'm talking about the slash in the middle. |
| Comment by user-f2760 (Inactive) [ 05/Apr/17 ] |
|
lightningwb still a valid bug, 5tr4
|
| Comment by Anomonous Anomonous [ 05/Apr/17 ] |
|
The second part shouldn't have a slash |
| Comment by Wheaton [ 29/Mar/17 ] |
|
If you put the second part in a chain command block ahead of it it will work |