execute as @s[gamemode=spectator,tag=ghostpot,scores={ghost=101}] at @s run playsound minecraft:entity.player.breath player @a[gamemode=spectator] ~ ~1 ~ 1 .8
execute as @s[gamemode=spectator,tag=ghostpot,scores={ghost=1..101}] at @s anchored eyes positioned ^.1 ^ ^.15 run particle minecraft:small_flame ~ ~ ~ 0 0 0 1 0 force @a[gamemode=spectator]
execute as @s[gamemode=spectator,tag=ghostpot,scores={ghost=1..101}] at @s anchored eyes positioned ^-.1 ^ ^.15 run particle minecraft:small_flame ~ ~ ~ 0 0 0 1 0 force @a[gamemode=spectator]
execute as @s[gamemode=spectator,tag=ghostpot,scores={ghost=1}] at @s run function survivalplus:tools/pot/ghostexit