execute if entity @s[gamemode=!creative] if entity @n[tag=player1,nbt={CustomName:{"text":"Capture Bag","italic":0b}}] run loot spawn ~ ~ ~ loot survivalplus:ngtools/capturebag
execute if entity @s[gamemode=!creative] if entity @n[tag=player1,nbt={CustomName:{"text":"Capture Bag","italic":0b}}] run give @s name_tag
data merge entity @e[tag=player1,limit=1] {CustomName:{"text":"ZombieMan224"}}
advancement revoke @s only survivalplus:tools/player/zombieman/renamed