#fail
execute as @e[nbt={CustomName:{"text":"Capture Bag","italic":false}},predicate=survivalplus:nocapture] at @s run function survivalplus:tools/capturebag/fail

#pass
execute as @e[nbt={CustomName:{"text":"Capture Bag","italic":false}},predicate=!survivalplus:nocapture] at @s run function survivalplus:tools/capturebag/capture

advancement revoke @s only survivalplus:tools/titan/capture