Skip to main content
edited tags
Link
Fabian Röling
  • 20.7k
  • 6
  • 39
  • 78
Edited the title to suit the question being asked.
Link

Minecraft: Teleporting group of How do I teleport players from area to spot using comandblocksbased on their teams?

Source Link
codermaster
  • 604
  • 2
  • 9
  • 29

Minecraft: Teleporting group of players from area to spot using comandblocks

I'm making a costum map which uses comandblocks to teleport players to a spot. The commandblocks are setup under two rooms. (One for team red players and one for team blue players). I need to teleport all players frome one team to a spot (-100 100 -100). and the other team to another spot (100 100 -100).

The problem is that the comand blocks used to teleport team blue are closer to the team red room. This means that I can't just setup the commandblock like this:

tp @a[r=10] 100 100 -100

How can I make shure that one team gets telepoarted to the right area.

Note: This is just an example, there are over 100 commandblocks that need to work. This probebly means that timing it right requires a lot of redstone experiance and is almost inpossibile. The best way would be if there is a command I can just use.