
#copy the mob-to-be-replaced's data to the skeleton jockey version
data modify entity @s Tags set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] Tags
data modify entity @s CustomName set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] CustomName
data modify entity @s Attributes set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] Attributes
data modify entity @s Health set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] Health
data modify entity @s HandItems set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] HandItems
data modify entity @s HandDropChances set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] HandDropChances
data modify entity @s ArmorItems set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] ArmorItems
data modify entity @s ArmorDropChances set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] ArmorDropChances
data modify entity @s Rotation set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] Rotation
data modify entity @s ActiveEffects set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] ActiveEffects
data modify entity @s IsBaby set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] IsBaby
data modify entity @s Glowing set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] Glowing
data modify entity @s Motion set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] Motion
data modify entity @s NoGravity set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] NoGravity
data modify entity @s Invulnerable set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] Invulnerable
data modify entity @s NoAI set from entity @e[tag=KyuJockeyReplace,limit=1,sort=nearest,distance=..1.5] NoAI


tag @s add KyuJockeyMob