mojira.dev
MCPE-162264

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

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 ~ ~

→:info: Pig is spawned in the direction you were facing.

Comments 6

Is this report meant to be about /teleport, or about /summon?

Is this report meant to be about /teleport, or about /summon?

Oh, I must have put the wrong name in the title, my apologies. I made a fix.

This appears to have been fixed by now, perhaps since the rotation arguments were reintroduced (preview 1.19.70.23?).

Sprunkles

(Unassigned)

886630

Confirmed

Windows

1.19.40.21 Preview

1.19.70.23 Preview

Retrieved