execute at @s run playsound minecraft:entity.enderman.teleport player @a
execute at @s run particle glow_squid_ink ~ ~1 ~ .3 .5 .3 0 30

execute store result score random itemcount run random value 1..6
execute if score random itemcount matches 1 run spreadplayers ~ ~ 0 500 under 75 false @s
execute if score random itemcount matches 2 run spreadplayers ~ ~ 0 1000 under 75 false @s
execute if score random itemcount matches 3 run spreadplayers ~ ~ 0 5000 under 75 false @s
execute if score random itemcount matches 4 run spreadplayers ~ ~ 0 10000 under 75 false @s
execute if score random itemcount matches 5 run spreadplayers ~ ~ 0 25000 under 75 false @s
execute if score random itemcount matches 6 run spreadplayers ~ ~ 0 50000 under 75 false @s

execute at @s run playsound minecraft:entity.enderman.teleport player @a
execute at @s run particle glow_squid_ink ~ ~1 ~ .3 .5 .3 0 30

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