Need help on team making in bedwars

So, I am making a bedwars game, and I have no idea how to put people in separate teams, that spawn on a different part of the map.(also I need it to be equal, and if its odd, then it would choose a random player to make spectator.) I have tried browsing for topics on this, but couldn’t find any. I also have a lobby and I need it so that when I press the button, it makes everyone go to a random team.(which is again equal, and if its odd, a spectator.)
Help would be appreciated.

Team switch when game starts Then put a teleporter on each side of the spawn points and put it team scope

I updated it.

Go to the settings and in map options, then click team. Next, set the team mode into specific team amount with the amount of teams you want, then split it evenly like the picture below

1 Like

Thanks! how do I make the teleporters teleport random teams?

Then get a teleporter on each side of the “base” or the teams spawn place and put it team scoped

2 Likes

Hang on does it even have a scope?

1 Like

I guess you can put spawn pads to make the players into random teams (ex. spawn pad with only team one to spawn in)

1 Like

Ya that should be the solution

1 Like

Yeah but, I have a lobby, and there’s a button that starts the game. So spawn pads wont work.

1 Like

oh, then let me try to figure it out on gimkit.

1 Like

Spawn pads can work all you need to do is change the phase it starts.

Spawn pads could work you just have to change the phase

No they don’t. The players all start in lobby, during game, and there’s no phase other than pre-game.

k, so get the amount of teleporters you need for each team (I use 2). Then, in the teleporters, make them have a channel teleport them there, I use teleporter 1 and teleporter 2
image
image
Next, go into the trigger and make a block code using this code (add more if you want more teams, also the code might be different if you put a different channel name)


then connect the button to the trigger and that’s it! let me know if I missed anything.

2 Likes

You’re so close…
Just a bit off. You want the number to be the same, so instead of doing that, just do:

Broadcast message on channel | Create Text with: | "teleport"
                                                 | Team number

This uses concatenation, which is super helpful for simplifying blocks.


Now for the system, use teleport1 instead of teleport, and teleport2 instead of teleport 2.


But good job @thatmyboy for starting us off good! Team 1 will be on the teleport1 teleporter, and same for Team 2.

2 Likes

I don’t get it…
(sorry my brain is insanely small)

1 Like

Thanks! It’s been a while since I actually hopped on creative, so I am kind of rusty.

2 Likes

Basically we already have random teams, so we just broadcast a message teleporting them to the starting place belonging to their own team. That way people of the same team start at the same place.

So, do we combine your code with the other one, or just your code itself?