mojira.dev
MCPE-43866

Caret notation (local coords) does not work with /execute & detect

The bug

Caret notation (^ ^ ^) can be used in all commands to move the effect relative to the direction an entity is facing. For example, /summon cow ^ ^ ^3 creates the mob three blocks in the direction the player is viewing, starting at their feet. This works as intended.

However, when used in execute or detect, the view direction is not used and the coordinates function exactly the same as if they were ~.

How to reproduce

Face a diagonal direction and run this command:

/execute @p ^ ^ ^5 summon cow

β†’ ❌ Β The cow was summoned five blocks south instead of five blocks forward.

Linked issues

Comments 1

Thank you for your report!
We're actually already tracking this issue at MCPE-29942, so we will resolve and link this ticket as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature, to see if the issue has already been mentioned.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

tryashtar

(Unassigned)

Confirmed

Windows

1.11.0.7 Beta, 1.10.0

Retrieved