1
Please help
I have made a pvp map where people can select a map they wish to play on, then select a team, and then choose a class. I have finished all that so far and i have given everyone 6 lives and once you have died 6 times your are then spectating the game.
The bit i need help with though is making it so that when there is only one team remaining, i need it to teleport all players back to the spawn.
please help
The bit i need help with though is making it so that when there is only one team remaining, i need it to teleport all players back to the spawn.
please help
Create an account or sign in to comment.
14
1
Yeah, you really need plugins...
1
Sorry dude. Plugins needed for this
1
What are you? 12? do some research before you type misinformation on a public forum.
Not only do you not need a plugin for this, but it is actually fairly easy to achieve.
Not only do you not need a plugin for this, but it is actually fairly easy to achieve.
1
What are you? 12 1/2? Jokes aside, you guys do not realise that you do not need a plugin for this, you can do it in vanilla
1
bkleinman1I have made a pvp map where people can select a map they wish to play on, then select a team, and then choose a class. I have finished all that so far and i have given everyone 6 lives and once you have died 6 times your are then spectating the game.
The bit i need help with though is making it so that when there is only one team remaining, i need it to teleport all players back to the spawn.
please help
Here's my idea:
This will require three scoreboard teams.
/scoreboard teams add (team name)
1. Your first competing team
2. Your second competing team.
3. Have a separate team for spectators(i.e. those who have lost all their lives. Then, whenever a player on either team(I assume there are two teams) loses all their lives, they join the spectating team
/scoreboard teams join @p[criteria] (name of spectating team)
Have two command blocks set up at the spawn chunk on a rapid clock that is activated when the game starts with the command in both:
/testfor @p[team=whatever you typed in for the first competing team]
/testfor @p[team=second competing team]
Hook both command blocks with comparators into NOT gates. This means that when one team has no players, then one of the comparators will stop providing an output, allowing you to say "___ team wins!" And teleport everyone back to spawn. Make sure that the clock that the testfor command blocks are on is only active after a game starts.
I hope that was easier to understand than I think it is, and good luck!
1
i suck at this stuff
1
Then a plugin there is nothing else you need something to be modded,as vanilla minecraft mostly focuses on single player
1
Hey guess what, I just did this for him
1
Kokiboki123oh do /tp (the coords here)
Yes but that won't help. I will need to testfor something so that it will know when there is only one team remaining, then i can tp everyone
1
oh do /tp (the coords here) in your command block
1
Don't think he means that.
1
I dont want to use any mods or plugins. I want to do it with command blocks but thats the thing im stuck on. i dont know how.
1
Command block?Or do it manually
1
I think there is a plugin to do that. It puts them in a spectating room and after it will respawn them but I forgot what it is called I will look now and get back to you.