1
NEED HELP: Redstone, Scoreboard, & command block stuff.
I have 4 dispensers set up to give the clothes red or blue with these commands in order. all triggered with 1 pressure plate in the staging area.
/scoreboard teams add Blue
/scoreboard teams join Blue @p[r=10]
/scoreboard objectives add kills playerKillCount Team Kills
/scoreboard objectives setdisplay sidebar kills
/scoreboard teams option Blue color blue
/teleport @p[r=10] x y z
*your teleported to Blues half of the arena just above a command block attached with a fast clock*
/spawnpoint @p[r=5,team=blue] x y z
so now your in the arena and spawn point is set to keep you there.
Questions:
1. how do I get the scoreboard to show up before anyone kills anyone?
2. How do I get the score board to add the entire teams kills, instead of just each individual player
3. How do I set an objective so that the first team to reach 20 kills wins?
4. Is it possible to have tnt explode and kill the player but not any blocks?
/scoreboard teams add Blue
/scoreboard teams join Blue @p[r=10]
/scoreboard objectives add kills playerKillCount Team Kills
/scoreboard objectives setdisplay sidebar kills
/scoreboard teams option Blue color blue
/teleport @p[r=10] x y z
*your teleported to Blues half of the arena just above a command block attached with a fast clock*
/spawnpoint @p[r=5,team=blue] x y z
so now your in the arena and spawn point is set to keep you there.
Questions:
1. how do I get the scoreboard to show up before anyone kills anyone?
2. How do I get the score board to add the entire teams kills, instead of just each individual player
3. How do I set an objective so that the first team to reach 20 kills wins?
4. Is it possible to have tnt explode and kill the player but not any blocks?
Create an account or sign in to comment.
12
1
o and for question 4:
Use the /effect command to give them instantdamage 100 or tp them into the void!
Cuz tnt will always destroy block if not in water.
Use the /effect command to give them instantdamage 100 or tp them into the void!
Cuz tnt will always destroy block if not in water.
1
Q2:
Make a testfor command that does /testfor @r[team=red/blue,score_playerkillcount=1]. Put a comparator at the end that activates another clock that is hooked up to a commandblock that adds 1 point to a score called "Red/blue teams kills"(or whatev you want it to be called). place a repeater that go's into another clock that go's into another commandblock which removes 1 playerkillcount score from a random player in that team with a score of min 1.
This you will need to do twice. 1 time for red one time for blue.
Hope this helped
Make a testfor command that does /testfor @r[team=red/blue,score_playerkillcount=1]. Put a comparator at the end that activates another clock that is hooked up to a commandblock that adds 1 point to a score called "Red/blue teams kills"(or whatev you want it to be called). place a repeater that go's into another clock that go's into another commandblock which removes 1 playerkillcount score from a random player in that team with a score of min 1.
This you will need to do twice. 1 time for red one time for blue.
Hope this helped
1
It seems as if you have most of this figured out except number two i am pretty sure i can help you though as school is endin i am busy with finals if you email me at minionsofhaba@gmail.com make sure to mention jericho867 sent you as multipul people use that account i think i can walk you through my thoughts or if you have time on the weekend and can hop on my server i can help you that way also
1
I could explain this to you but why not look at minecraft wiki or find a video by sethbling good luck kind sir
1
I think SethBling did one Check his Youtube page.
1
Is there a tutorial about command block?????
1
1. For the scoreboard to show up someone needs to get a point in that scoreboard given that you've set it to display in the sidebar. You can do this and still keep everyone's score at 0 by having:
/scoreboard player set @p kills 1
followed by
/scoreboard players set @p kills 0
I guess you could have that in the spawncube loop but since you only need it to activate once it might be best to either put a feedback loop on it so it's always on after the first time or have it activate once the game actually starts.
2. That's not possible as of now.
3. Testing for team kills might prove to be a bit tricky. Only way I can think of would be to first add each team to 2 new scoreboard, one for each team that have the deathCount prefix. You would need to have a testfor command in a clock that checks for players with 1 death on red team, as soon as someone dies on red team that commandblock will output and you would have to hook that up to a small counter and a commandblock that sets that players deathcount back to 0. Meaning it would give a pulse each time someone dies and when 20 persons on red team have died the game is over, but that would include them dieing from other causes that just other players too.
4. If it's just killing the player you're after there's the /effect commands which can do that for you otherwise the TNT have to land in water to not destory the environment.
Hope some of that info helps you out
/scoreboard player set @p kills 1
followed by
/scoreboard players set @p kills 0
I guess you could have that in the spawncube loop but since you only need it to activate once it might be best to either put a feedback loop on it so it's always on after the first time or have it activate once the game actually starts.
2. That's not possible as of now.
3. Testing for team kills might prove to be a bit tricky. Only way I can think of would be to first add each team to 2 new scoreboard, one for each team that have the deathCount prefix. You would need to have a testfor command in a clock that checks for players with 1 death on red team, as soon as someone dies on red team that commandblock will output and you would have to hook that up to a small counter and a commandblock that sets that players deathcount back to 0. Meaning it would give a pulse each time someone dies and when 20 persons on red team have died the game is over, but that would include them dieing from other causes that just other players too.
4. If it's just killing the player you're after there's the /effect commands which can do that for you otherwise the TNT have to land in water to not destory the environment.
Hope some of that info helps you out
1
Thanks for the help. But I never read this and ended up doing what you said in 3 basically. So High five for same idea. I set it up so every time someone from the opposing team dies your team gets a point. first to X amount of points wins.
But its not fully tested. I can't set up a server and no one will set it up for me. Download here: http://www.mediafire.com/download.php?935994mopaj1n9p
So only in theory it will work... T_T sigh
Also I heard that the essentials plugin for smp can stop tnt from breaking blocks but still do damage to the player. Not sure how true that is but eh. if blocks are broken its not a problem.
But its not fully tested. I can't set up a server and no one will set it up for me. Download here: http://www.mediafire.com/download.php?935994mopaj1n9p
So only in theory it will work... T_T sigh
Also I heard that the essentials plugin for smp can stop tnt from breaking blocks but still do damage to the player. Not sure how true that is but eh. if blocks are broken its not a problem.
1
3. scorebaord command captain sparklez video does show a pretty good example
1
4. NO IDEA WHATSOEVER
1
1. Set the cammand block before players Are teleported to the start
2. You can't (probably) but if you have a comparator give out a redstone signal from that command you could build a redstone scoreboard in the arena area
3. You can do the same thing with a comparator so that when it reaches 20 it will send out a redstone signal and tp everyone back to the start
example: http://www.youtube.com/watch?v=eqpticzWXBc&list=SP51FB077B700C0148
2. You can't (probably) but if you have a comparator give out a redstone signal from that command you could build a redstone scoreboard in the arena area
3. You can do the same thing with a comparator so that when it reaches 20 it will send out a redstone signal and tp everyone back to the start
example: http://www.youtube.com/watch?v=eqpticzWXBc&list=SP51FB077B700C0148
1
1. I did. It doesn't work like that. The score board doesn't show until you kill something or someone.
2. sucks but thanks. probably won't.
3. which command?
2. sucks but thanks. probably won't.
3. which command?