item replace entity @e[tag=temp,limit=1] armor.head from entity @s armor.head
item replace entity @e[tag=temp,limit=1] armor.chest from entity @s armor.chest
item replace entity @e[tag=temp,limit=1] armor.legs from entity @s armor.legs
item replace entity @e[tag=temp,limit=1] armor.feet from entity @s armor.feet

kill @s