I have a vanilla server 1.8.7 that uses a book to teleport players to spawn or to their "home" (an invisible armor stand that is connected to the player via their UUID). The problem is, if they set their home (place their armor stand) in one dimension (Overworld), and go to another dimension (the Nether) and activate the "teleport home" function using a trigger, it sends them to the same coordinates in that dimension, more often than not resulting in the player's death.
I did some digging, and there seems to be a dimension parameter, but I can't quite figure out the syntax or how to get it to work.
I updated the command block to:
/tp @a[score_tpHome_min=1,Dimension=0] 68 68 68
I was hoping it would only tp the player when they were in the overworld (Dimension 0), but it seems to be ignoring that parameter in the nether and still teleporting to those co-ordinates in the nether.
I also tried:
/tp @a[score_tpHome_min=1,Dimension:0] 68 68 68
which is the way other people were using the parameter in other ways, but that gave an error.