execute at @s run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace minecraft:nether_portal
execute at @s run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace minecraft:obsidian

tellraw @s {"text":"You tried to build a portal to ungenerated terrain.\nBuild a portal from the overworld to the nether to ensure a successful connection.","color":"dark_purple"}
#tellraw @s {"text":"Build a portal from the overworld to the nether","color":"dark_purple"}
#tellraw @s {"text":"to ensure a successful connection.","color":"dark_purple"}

effect give @s blindness 2 0 true
tp @s -1000 22 -1000