## Tag
tag @s add vb.player_effect.no_nametag

## Grant effect
team join vb.no_nametag @s

## Remove effect when not wearing leather cap
execute unless items entity @s armor.head minecraft:leather_helmet run function vb:tick_player/effect_source/remove/no_nametag