Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-277661

Constantly rotating the player to their current rotation using /rotate produces jittery camera movement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.2 Release Candidate 1
    • None
    • Confirmed
    • Camera, Commands, Networking
    • Normal
    • Platform

      The /tp command, when used with relative coordinates, changes the position or rotation relative to the client, but the /rotate command seems to set the rotation of the client to the result pre-calculated on the server.

      The problem is that, when /rotate is runned every tick, it makes the client's camera movement jittery. Try running the following command with a repeating command block.

      execute as @a at @s run rotate @s ~ ~ 

      Then try moving your camera around. You can notice that the movement is not smooth, and it is hard to move. This does not happen when you use /tp instead.

      execute as @a at @s run tp @s ~ ~ ~ ~ ~  

      The problem gets worse if you're in an environment with high ping.

            Unassigned Unassigned
            Triton365 Triton365
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: