#Position
data modify entity @s Pos set from entity @s equipment.legs.components.minecraft:custom_data.Position[0]
data remove entity @s equipment.legs.components.minecraft:custom_data.Position[0]
#Rotation
data modify entity @s Rotation set from entity @s equipment.legs.components.minecraft:custom_data.Rotation[0]
data remove entity @s equipment.legs.components.minecraft:custom_data.Rotation[0]