/execute as @s facing entity @s feet run /tp @s ~~~ gives the error 'syntax error: unexpected "entity" at "@s facing >>entity<< @s feet r"'
the facing entity, facing positioned, and rotated sub-command does not work as a sub-command and it only works as the first command in /execute when on realms
Note: I have found a workaround for this glitch, you type in the command as normal except before you type rotated or facing you put "run execute" so instead of this:
"/execute as @s facing entity @s feet run /tp @s ~~~"
It is instead this:
"/execute as @s run execute facing entity @s feet run /tp @s ~~~"
Here is another example, instead of this:
"/execute as @e [type=bat] at @s facing entity @p eyes rotated ~~90 run /tp @s ^^^0.2 facing ^^^5"
It is instead this:
"/execute as @e [type=bat] at @s run execute facing entity @p eyes run execute rotated ~~90 run /tp @s ^^^0.2 facing ^^^5"
Steps to Reproduce:
1.type this into the chat window while you have operator permissions: /execute as @s facing entity @s feet run /tp @s ~~~
Observed Results:
You get this syntax error: syntax error: unexpected "entity" at "@s facing >>entity<< @s feet r"
Expected Results:
The command should successfully execute and teleport the player to themselves facing straight forwards without giving any syntax errors.
- duplicates
-
MCPE-169974 /execute positioned gets syntax error after 1.19.80 update
- Resolved