2

TP'ing entities to custom dimensions

laserwolf07's Avatar laserwolf076/26/20 6:50 pm
7/4/2020 3:26 pm
laserwolf07's Avatar laserwolf07
Oki, so I'm making a custom dimension world, and I want to be able to TP nonplayers to that dimension. Of course, a player should be nearby, and they need to be in a certain radius. But my commands don't work. Not even on players. Any help?
Posted by laserwolf07's Avatar
laserwolf07
Level 3 : Apprentice Miner
1

Create an account or sign in to comment.

4

1
06/26/2020 7:33 pm
Level 20 : Expert Architect
C_InfDef
C_InfDef's Avatar
/Execute in <dimension> run tp @e[​name=<name>] ~ ~ ~

I do not know how to select a specific entity that activate the command block, but this should work if it is a specific entity.
2
06/27/2020 5:51 pm
Level 3 : Apprentice Miner
laserwolf07
laserwolf07's Avatar
it's general entities
1
06/27/2020 6:01 pmhistory
Level 20 : Expert Architect
C_InfDef
C_InfDef's Avatar
Ok I figured it out:
/Execute in <dimension> run tp @e[​sort=nearest, limit=1] ~ ~ ~
This should teleport the nearest entity

Just replace "~ ~ ~" with the coords you want them to end up at.
1
07/04/2020 3:26 pm
Level 3 : Apprentice Miner
laserwolf07
laserwolf07's Avatar
thanks
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome