/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
is duplicated by 3
Attachments
Comments 15
Please provide a screenshot of your game right after the issue occurred with the F3 debug screen enabled.
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.
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. Yaw is reset to 0.