particle flash ~ ~1.5 ~
particle cloud ~ ~1.5 ~ 0 0 0 .5 50
playsound minecraft:item.trident.thunder player @a ~ ~1 ~ 1 .8
gamemode survival @s[tag=!creativeghost]
gamemode adventure @s[predicate=survivalplus:adventuremode]
gamemode creative @s[tag=creativeghost]
effect give @s weakness 5 0
effect give @s mining_fatigue 5 0
tag @s remove creativeghost
execute as @a[scores={ghost=1}] run scoreboard players reset @s ghost
execute as @s[tag=ghostpot] run tag @s remove ghostpot