Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-169945

/execute facing and /execute rotated and /execute positioned does not work in the /execute sub-commands on realms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.80, 1.19.81 Hotfix
    • Community Consensus
    • Multiple

      /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. 

            Andexter 8Crafter
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: