execute if entity @s[nbt={Inventory:[{Slot:100b,id:"minecraft:air"}]}] run data modify entity @e[tag=goldstand,limit=1,sort=nearest] equipment.feet set value {id:"minecraft:golden_boots"}
execute if entity @s[nbt={Inventory:[{Slot:101b,id:"minecraft:air"}]}] run data modify entity @e[tag=goldstand,limit=1,sort=nearest] equipment.legs set value {id:"minecraft:golden_leggings"}
execute if entity @s[nbt={Inventory:[{Slot:102b,id:"minecraft:air"}]}] run data modify entity @e[tag=goldstand,limit=1,sort=nearest] equipment.chest set value {id:"minecraft:golden_chestplate"}
execute if entity @s[nbt={Inventory:[{Slot:103b,id:"minecraft:air"}]}] run data modify entity @e[tag=goldstand,limit=1,sort=nearest] equipment.head set value {id:"minecraft:golden_helmet"}