execute at @e[tag=gateway] run summon area_effect_cloud ~ ~ ~ {Particle:{type:glow_squid_ink},Radius:2,Duration:19,potion_contents:{potion:strong_slowness}}
execute if entity @e[nbt={active_effects:[{id:"minecraft:slowness",amplifier:3b}],OnGround:1b}] run function survivalplus:finale/travelprep
execute if entity @e[tag=gatewayready] run function survivalplus:finale/travel
execute if entity @e[tag=gatewayready] run function survivalplus:finale/removetag