execute at @e[tag=portal,predicate=survivalplus:framework] if score hardmode hardmode matches 1 run summon area_effect_cloud ~ ~.5 ~ {Particle:{type:glow_squid_ink},Radius:2,Duration:19,potion_contents:{potion:strong_slowness}}
execute as @e[tag=portal,predicate=survivalplus:framework] run tag @s add gateway
execute at @e[tag=portal,tag=gateway] run summon minecraft:lightning_bolt ~ 500 ~
execute as @a run playsound minecraft:block.end_portal.spawn master @s ~ ~1 ~
execute as @e[tag=portal,tag=gateway] run tag @s remove portal