execute at @e[tag=armorkit] if entity @e[tag=armorable,distance=..1] run tag @e[tag=armorable,limit=1,sort=nearest,tag=!armor,tag=!armored] add armor
execute at @e[tag=armorkit] if entity @e[tag=armor,distance=..1] as @e[tag=armor,limit=1,sort=nearest] at @s run function survivalplus:mobs/upgrade/armored