1
How to teleport only certain teams to a specific location?
Hello, Planet Minecraftians. PigMayor02 here.
Recently, I have been making a game with commands and have hit a stump.
You see, I am not very good with
This is where I need your help.
As you have already read in the title, what I need to know is if/how you can teleport certain teams (ex: All the members of team "green") to a certain location while other teams (ex: red, blue, yellow, etc.) go to another location. I was wondering if you guys would be able to tell me if/how I can do this.
Thanks,
~PigMayor02
Recently, I have been making a game with commands and have hit a stump.
You see, I am not very good with
/execute
or /scoreboard
This is where I need your help.
As you have already read in the title, what I need to know is if/how you can teleport certain teams (ex: All the members of team "green") to a certain location while other teams (ex: red, blue, yellow, etc.) go to another location. I was wondering if you guys would be able to tell me if/how I can do this.
Thanks,
~PigMayor02
Create an account or sign in to comment.
1
1
Just to add on to what was said above, you can target players not on a team with the parameter "team=". You can also target anyone not on a specific team by adding ! before the team name.
For example, you can set all players not on a team to spectator mode:
Kill all players not on the red team:
Tell all players on any team a message:
You can go on and on.
For example, you can set all players not on a team to spectator mode:
gamemode 3 @e[team=]
Kill all players not on the red team:
kill @a[team=!red]
Tell all players on any team a message:
tellraw @a[team=!] "Hi"
You can go on and on.