u/TomStarr213

How do I teleport an entity to another dimension when they get close to an entity?

So I'm trying to create a datapack, and one of the features is if you get close to this entity that's in the end, you get teleported back to the overworld.

Here's the current command I have: execute in minecraft:the_end run execute as \@e[type=minecraft:armor_stand,tag=overworld] at \@e if entity \@e[distance=..80] run tp \@p distance=..80] 0 350 0

And yeah ik when you look at it doesn't TP me to the overworld, but hoping someone could please give some guidance on what to add to make it TP. I've been stuck on this for half an hour 😭

And yeah ik I could probably use scoreboards, but but if there is another way instead that doesn't use scoreboards, that would be much appreciated, thank you.

reddit.com
u/TomStarr213 — 2 days ago