How to reproduce the bug:
Place an armor stand in your world
Type this command in chat
/execute as @e[type=armor_stand] at @s run tp @s ~ ~ ~ ~90 ~
The armor stand is supposed to rotate 90 degrees, and that happens!If you keep typing that command though, you will notice that, at a certain point, it will NOT work anymore and the armor stand will not rotate. If after that you try it again, the armor stand will skip a 90 degree rotation and will rotate a full 180 degree!
What it seems to me is that the armor stand always rotates, but his animation for some reason is not always updated and falls behind!
Note:
When the command didn't work I went in gamemode 3 and clicked on the armor stand to spectate him and I noticed it actually put me in the rotation where the armor stand was supposed to be! This means that it's only a visual glitch, the armor stand is actually in the right location!
Linked issues
is duplicated by 3
Comments 12
if you type /execute as @e[type=armor_stand] at @s run tp @s ~ ~ ~ ~ ~90
the armor stand moves, but visually, he don't : his head keep staying in the same position. You can see it with F3 + B
How many times do I have to run the command? I've been running it in chat about 30 times in pre-4 and it still rotates.
The one thing I do notice is that if you summon an armor stand while a repeating command is running the rotation teleport, it will not rotate like already existing armor stands. Instead it looks like it pingpongs its rotation for a while before settling. Only happens with a large enough rotation turn though and is likely not much of an issue.
I'm gonna preemptively say that this is fixed along with the rotation bug that was fixed in pre-4 but I suppose we can wait for other confirmations.
Can confirm for 1.15.1 when in a repeating function but a simple solution is to only update it's rotation once every 2 ticks instead of once per tick. Has something to do with its visual updating getting pushed back one tick whenever it changes rotation. This is why when you /tp something a short distance, you can see it visibly move rather than just vanish from one spot and reappear in another one in the next frame. Rotation interpolation is what is causing this effect, logging out and back in will fix it too but that's hardly a solution.
Edit 12/1/20 7:48pm +1000:
My solution does not actually work, I have noted the problem to persist for more than 20 seconds at a time instead of a handful of ticks.
Edit like idk 2h later:
Have noticed that the ticket maker's command actually wouldn't work. The command that would be expected to work would be:
/execute as @e[type=armor_stand] at @s rotated as @s run tp @s ~ ~ ~ ~90 ~
not what they said. I'll make a new ticket for my issue.
Possibly duplicate of MC-117319.