execute if entity @a[nbt={Dimension:"minecraft:overworld"}] run schedule function tutorial:tp 2s execute if entity @a[nbt={Dimension:"minecraft:overworld"}] as @a at @s in minecraft:the_nether run tp @s ~ ~ ~