mojira.dev
MC-200092

/setworldspawn seems to ignore the 'angle' parameter

/setworldspawn seems to ignore the angle I set. When I execute the command "/setworldspawn X Y Z 90.0", the output says that the angle is set to 90.0. However when I die, I face south.

Linked issues

Attachments

Comments 15

Can confirm. Yaw is reset to 0.

That's interesting, I tried it and it doesn't work.

Please provide a screenshot of your game right after the issue occurred with the F3 debug screen enabled.

After:
     /setworldspawn 48 67 257 90.0
     /kill

I have also uploaded a video, see in attachments.

[media]

 Is this going to be fixed anytime? Probably in 1.16.4?

5 more comments

I'm still experiencing this in 1.19! I'm building a little game, and the world spawn makes you face the wall in the first room (which isn't very intuitive), and attempting to change the camera degree with direct commands and command blocks does nothing. This seems to be a direct bug of this command and is very annoying. The command feedback says the input I gave, but the game still ignores it.

Still affects 1.19.3

same problem in 1.20.1

To clarify (since the title could be misleading to anyone looking for the cause), the issue isn't caused by the "angle" argument being ignored, it's that in the constructor for the ServerPlayer object, the angle is overriden by the call to fudgeSpawnLocation which happens after the super constructor sets the spawn yaw to the yaw from the ServerLevel.

A fix could be to make the fudgeSpawnLocation method respect the level's yaw. Would solve the issue on initial spawn and respawn (without a "home" location).

Can confirm in 1.21

Arkadi Statsenko

Panda4994

Confirmed

Commands

1.16.3, 1.16.4, 20w46a, 20w51a, 1.17.1, 1.18.2, 1.19, 1.19.3, 1.20.2, 1.21

1.21.6 Pre-Release 1

Retrieved