Advertisement
dragnoz

basic team selector 1.7 compatible

Jul 27th, 2015
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Step one create team:
  2. /scoreboard teams add blue
  3.  
  4. Step two set color
  5. /scoreboard teams options blue color blue
  6.  
  7. Now you ready to start
  8.  
  9. 1. Place two commandblocks ontop of each other
  10. 2. Place a preasureplate on the top one, anyone stepping on it will activate both blocks.
  11.  
  12. Top command:
  13. /scoreboard teams join blue @p[r=1]
  14.  
  15. The r=1 is to ensure that only the player within a 1 block radius is added to the team
  16.  
  17. Bottom command:
  18.  
  19. /tp @p[team=blue,r=2] x y z
  20.  
  21. So only a player that is in the blue team that is within 2 blocks is teleported
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement