mojira.dev
MC-80196

Command blocks act through dimension

Command blocks are teleporting people in other dimensions.
If there is a command block in one world that has the command "tp @p[r=5] 128 64 0" it doesn't care what the dimension the nearest player is in. So if a player in another dimension happens to be the one closest to the xyz coordinates, that player would get teleported to the 128,64,0 coordinates in THEIR dimension.

I think command blocks should only be able to teleport players in the dimension the it's placed in, OR there should be another dimension parameter. For example:
"tp @p[r=5,w=dimension]"

I reported this bug to the Spigot team, but they said that this was a vanilla bug. You can see my other report here:
https://hub.spigotmc.org/jira/browse/SPIGOT-851

Linked issues

Comments 19

If I use r= then it works fine for me, I'll look into it a little later today, also this is partly a feature request, and this is not the place for that

I guess I understand what you are talking about, if you try to teleport a player, it also tries to teleport a player in all the other dimensions like Nether and End.

I find it odd that a command block can affect someone in another dimension but cannot MOVE someone TO another dimension. These problems make it hard to use other dimensions when using command blocks in your map making.
A command like
/tp @p[d=1] X Y Z RY RX D (both d and D stand for dimension)
Would be really nice.

/s/world/dimension/g

And that means what exactly Kumasasa? It is latin to me!

9 more comments

you mean /execute @p[r=-1] ~ ~ ~ /tp @p[r=5] 128 64 0
or else it wouldn't change anything

Actually using "/execute @p[r=-1] ~ ~ ~ /tp @p[r=5] 128 64 0" Causes the command to affect me anywhere in the over world not within 5 of the CB.

If you use "/execute @p[r=5] ~ ~ ~ /execute @p[r=-1,c=1] ~ ~ ~ /tp @p[r=0] 128 64 0" This will execute the command within 5 blocks of the CB at the player only in the same world as the CB and then tp said player where you want.

try the r=-1 method again, this is most likely intended, and changing this limits to what command blocks can do

Command blocks are supposed to act through dimension, unless, one of the following selector argument is used :

"x", "y", "z", "dx", "dy", "dz", "rm", "r"

Based on that, I can't see any weird behavior from all the command posted. Can someone provide a command that is not working correctly? Otherwise, this can be closed.

Linus

(Unassigned)

Community Consensus

Minecraft 1.8.4, Minecraft 15w49b

Retrieved