5

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?

1 Answer 1

7

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.

4
  • I'm not new to command blocks. Really, I'm not. I just am not an expert on them
    – hakalo
    Commented Jan 20, 2018 at 17:14
  • Trust me, if you have problems with something like this, you are a beginner compared to a lot of other people. And there's always more to learn. For example I haven't even learned /stats yet and now there's new commands in 1.13. /tp is a beginner difficulty command. Commented Jan 20, 2018 at 19:09
  • I didn't mean anything negative by using the term beginner. Everyone has to start somewhere. I was just meaning the commands wiki is very useful. I reference it often.
    – IronAnvil
    Commented Jan 20, 2018 at 19:30
  • ok. I've been using command blocks ever since I discovered them 1 year after I got Minecraft. I've now been using them for 3-4 years but I admit I've still got a lot to learn. I wasn't offended by the term beginner in any way. I'll take a look at the command wiki I guess
    – hakalo
    Commented Jan 21, 2018 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.