execute if entity @s[gamemode=!creative] if entity @n[tag=dummy,nbt={CustomName:{"text":"Capture Bag","italic":0b}}] run loot spawn ~ ~ ~ loot survivalplus:ngtools/capturebag
execute if entity @s[gamemode=!creative] if entity @n[tag=dummy,nbt={CustomName:{"text":"Capture Bag","italic":0b}}] run give @s name_tag
data modify entity @n[tag=dummy] CustomName set value {"text":"Test Dummy","color":"white"}
advancement revoke @s only survivalplus:tools/player/renamedummy