execute positioned ~ ~1.2 ~ if entity @s[] as @e[distance=..1.75,type=splash_potion,nbt={Item:{id:"minecraft:splash_potion",count:1,components:{"minecraft:potion_contents":{potion:"minecraft:invisibility"}}}}] run function vanilla_refresh:entity/invis/invisible
execute positioned ~ ~1.2 ~ if entity @s[] as @e[distance=..1.75,type=splash_potion,nbt={Item:{id:"minecraft:splash_potion",count:1,components:{"minecraft:potion_contents":{potion:"minecraft:long_invisibility"}}}}] run function vanilla_refresh:entity/invis/invisible
execute positioned ~ ~1.2 ~ if entity @s[] as @e[distance=..1.75,type=splash_potion,nbt={Item:{id:"minecraft:splash_potion",count:1,components:{"minecraft:potion_contents":{potion:"minecraft:water"}}}}] run function vanilla_refresh:entity/invis/invisible_undo
