How to fix armorstand rotation?
Im trying to just make an armorstand, with a custom model on the head, follow a frog. I want the armorstand to constantly rotate to face the same way as the frog, but it doesnt work. When the frog is looking around, while not moving, the armorstand rotation doesnt update. Im in 1.21.2 pre3 and im using these commands in the tick function:
execute as @e[type=minecraft:armor_stand,tag=frog_hat] at @s run execute store result entity @s Rotation[0] float 1 run data get entity @e[type=minecraft:frog,limit=1,sort=nearest] Rotation[0] 1
execute as @e[type=minecraft:armor_stand,tag=frog_hat] at @s run execute store result entity @s Rotation[1] float 1 run data get entity @e[type=minecraft:frog,limit=1,sort=nearest] Rotation[1] 1
execute as @e[type=minecraft:armor_stand,tag=frog_hat] at @e[type=minecraft:frog,limit=1,sort=nearest] run tp @s ~ ~0.05 ~