In Minecraft Java Edition, when a spectator is spectating another player or entity, the spectator's position on the server side is updated 1 tick later than the target's movement.
This delay occurs regardless of whether the target is moving by player input or via commands such as /tp.
This issue did not exist in versions prior to 1.21.2, but can be consistently reproduced in 1.21.2 and all newer versions.
Steps to Reproduce:
/scoreboard objectives add x dummyCreate a repeating command block, set it to โAlways Activeโ and set the command to
execute at @a as @e[distance=..1] store result score @s x run data get entity @s Pos[0]/scoreboard objectives setdisplay sidebar xPlace an armor stand
Switch to spectator mode (F3+N)
Spectate the armor stand (You should then be seeing both your own and the armor standโs x coodinate on screen
/tick rate 1/execute as @n[type=minecraft:armor_stand] at @s run teleport ~1 ~ ~
Environment
vanilla minecraft java edition
Attachments
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
๐ Bug Tracker Guidelines โ ๐ฌ Community Support โ ๐ง Mojang Support (Technical Issues) โ ๐ง Microsoft Support (Account Issues)
๐ Project Summary โ โ๏ธ Feedback and Suggestions โ ๐ Game Wiki
pos particle, better video quality and frame