1

Please help

bkleinman1's Avatar bkleinman15/23/13 12:32 pm
5/26/2013 8:09 am
atomick86's Avatar atomick86
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's Avatar
bkleinman1
Level 1 : New Network
1

Create an account or sign in to comment.

14

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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome