forum Forumskeyboard_arrow_right Help keyboard_arrow_right computerJava Edition

Create Forum Thread
2

TP'ing entities to custom dimensions

2 emeralds4 replies42 views
laserwolf07 started 06/26/2020 6:50 pm
and replied 07/04/2020 3:26 pm
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 avatar
laserwolf07
Level 1 : New Miner
1

comment Login or register to post a reply.

4 replies

1
06/26/2020 7:33 pm
Level 3 : Apprentice Engineer
C_InfDef
/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 1 : New Miner
laserwolf07
it's general entities
1
06/27/2020 6:01 pmhistory
Level 3 : Apprentice Engineer
C_InfDef
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 1 : New Miner
laserwolf07
thanks
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome