How Do You Make Team Spawn Points?

How do I create a random team chooser for Minecraft? answers helped me out a lot with my KitPVP Teams map but I have one more thing I need to do. I have to make the teams spawn in different areas. In more detail, I need command blocks to tp you to your team's spawn point when you join the team. I've tried having two command blocks set to impulse unconditional AlwaysActive that have the command:

/tp @a[team=(team name)] (xyz)

This isn't working and I can't think of anything else that would work. Changing it to repeat would make you frozen in the spawn point. Can anyone help with this?


Solution 1:

If you are using a button/pressure plate to toggle the command block then set the options to
Impulse Unconditional Needs redstone

If it is being executed after another command block it needs to be set to
Chain Conditional Always Active

Your command: /tp @a[team=(team name)] <x> <y> <z> uses the proper target selector.

It sounds like you are new to command blocks. I highly recommend you visit the wiki pages for commands and command blocks, they contain lots of valuable information. I reference them a lot when building various command block creations.