1

Please help

bkleinman1 5/23/13 12:32 pm
291
5/26/2013 8:09 am
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
Posted by
bkleinman1
Level 1 : New Network
1

  Have something to say?

JoinSign in

14

SkyGeckoMC
05/25/2013 11:46 pm
Level 33 : Artisan Wolf Whisperer
Yeah, you really need plugins...
1
PvPwonder01
05/25/2013 10:44 pm
Level 3 : Apprentice Miner
Sorry dude. Plugins needed for this
1
Kahanamoku
05/26/2013 7:23 am
Level 1 : New Miner
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.
1
atomick86
05/26/2013 8:09 am
Level 16 : Journeyman System
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
Spellguard
05/25/2013 10:40 pm
Level 23 : Expert Cake
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
Ringo
05/25/2013 9:44 pm
Level 1 : New Explorer
i suck at this stuff
1
Kokiboki123
05/23/2013 12:48 pm
Level 4 : Apprentice Miner
Then a plugin there is nothing else you need something to be modded,as vanilla minecraft mostly focuses on single player
1
atomick86
05/25/2013 7:22 pm
Level 16 : Journeyman System
Hey guess what, I just did this for him
1
bkleinman1
05/23/2013 12:45 pm
Level 1 : New Network
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
Kokiboki123
05/23/2013 12:42 pm
Level 4 : Apprentice Miner
oh do /tp (the coords here) in your command block
1
spency
05/23/2013 12:44 pm
Level 21 : Expert Toast
Don't think he means that.
1
bkleinman1
05/23/2013 12:41 pm
Level 1 : New Network
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
Kokiboki123
05/23/2013 12:36 pm
Level 4 : Apprentice Miner
Command block?Or do it manually
1
spency
05/23/2013 12:36 pm
Level 21 : Expert Toast
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.
1

Welcome