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

'/summon' rotation arguments do not inherit rotation without '/execute'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.70.23 Preview
    • 1.19.40.21 Preview
    • None
    • Confirmed
    • Windows
    • 886630

      The bug

      Relative values can be passed into the y-rotation and x-rotation arguments in /summon, but only when /execute is used. Otherwise, the relative values are assumed to be 0.

      Steps to reproduce:

      • Run the following command from chat. This should inherit the player's rotation for the y- and x-rotation arguments:
        /summon minecraft:pig ~ ~ ~2 ~ ~
        

      Pig is spawned facing south, y- and x-rotations are 0.

      • Now add /execute run to the beginning of the command. Note that this did not change any contextual components of the command.
        /execute run summon minecraft:pig ~ ~ ~2 ~ ~
        

      Pig is spawned in the direction you were facing.

            Sprunkles Sprunkles
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: