Teleport an armorstand facing another armorstand with pitch (head rotation)

Teleport an armorstand facing another armorstand with pitch (head rotation) - A Woman Sitting on Her Bed while Facing the Window

I am making a one command sphere generator in Minecraft, and I am almost done, but I have one problem. I teleport all the armorstands that make up the sphere facing the middle but their head pitch doesn't face the middle, is there a way to do this?

I currently use this command:

execute as @e[tag=sphere_body, type=minecraft:armor_stand] at @s if score @e[type=armor_stand, tag=sphere,limit=1] pitch matches -90 run teleport @s ~ ~ ~ facing entity @e[type=armor_stand, tag=sphere,limit=1]

The pitch scoreboard holds the pitch of the armorstand that is creating the sphere.






Pictures about "Teleport an armorstand facing another armorstand with pitch (head rotation)"

Teleport an armorstand facing another armorstand with pitch (head rotation) - A Woman in White Sweatshirt Wearing Face Mask with Her Hands on Her Head
Teleport an armorstand facing another armorstand with pitch (head rotation) - Smiling Woman With White Towel on Her Head
Teleport an armorstand facing another armorstand with pitch (head rotation) - Woman in White Crew Neck Shirt and Pink Blazer





All Armor stand Commands for 1.16.4+ | Comamnd Tutorial




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: cottonbro, Polina Tankilevitch, Anna Tarazevich, Tima Miroshnichenko