#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

particle minecraft:effect ~ ~ ~ 0 0 0 1 100
playsound minecraft:block.glass.break master @a
effect give @s minecraft:blindness 12 0 true
effect give @s minecraft:slowness 10 1 true
playsound minecraft:entity.enderman.teleport master @s ~ ~ ~ 1 0.5
scoreboard players set @s trap_cooldown 200