tag @s add ghostpot
tag @s[gamemode=creative] add creativeghost
scoreboard players set @s ghost 601
execute at @s run particle explosion ~ ~1 ~ 1 1 1 0 30 force
execute at @s run playsound minecraft:entity.blaze.ambient player @a ~ ~1 ~ 1 .8
execute as @s run gamemode spectator
effect give @s darkness 30
effect give @s glowing 30
effect give @s night_vision 30
effect give @s invisibility 30 2

advancement revoke @s only survivalplus:tools/pot/ghostpot