execute if entity @s[nbt={Inventory:[{components:{"minecraft:custom_data":{watertrinket:tag}}}]}] run function survivalplus:tools/trinkets/watertrinket
execute if predicate survivalplus:spacehat run effect give @s water_breathing 5 0 true
advancement revoke @s only survivalplus:tools/gethit/drown