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

'/execute as' inherits rotation, not '/execute at'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.30.23 Preview, 1.19.30
    • 1.19.10.20 Preview, 1.19.10, 1.19.30.20 Preview, 1.19.20
    • None
    • Confirmed
    • Windows
    • 797085

      The bug

      With the new /execute command syntax, the subcommand at should change the command's position, rotation, and dimension to the targets specified. However only the position and dimension are set; one must use /execute as to set the rotation, which does not line up with behavior in Java Edition.

      In Java Edition, /execute as solely changes the targets executing the command and it creates a new command stack for each target. Position, rotation, and dimension are not inherited from a target this way.

      Steps to reproduce:

      • Create a new world with the Upcoming Creator Features experimental enabled.
      • Place down an armor stand.
      • Run the following two commands and keep an eye out for where the particle is emitted at.
      • /execute at @e[type=armor_stand,c=1] run particle minecraft:large_explosion ^ ^ ^3
        

      The particle emits relative to the armor stand's position, but inherits your rotation.

      • /execute as @e[type=armor_stand,c=1] run particle minecraft:large_explosion ^ ^ ^3
        

      The particle emits relative to your position, but inherits the armor stand's rotation.

        1. execute_as.mp4
          6.66 MB
        2. execute_at.mp4
          7.93 MB

            Sprunkles Sprunkles
            Votes:
            7 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: