1

Command blocks "testfor"

TheLight 6/25/13 12:52 pm
8.7k
5/4/2014 12:12 am
im making a map and i cant get command blocks use testfor
i need to test players for a scoreboard objective.
if anyone can help then thx

I nolonger need help thx to everyone who gave me advice and help
Posted by
TheLight
Level 16 : Journeyman Mage
7

  Have something to say?

JoinSign in

10

HerpDerpTheGamer
05/04/2014 12:12 am
Level 1 : New Explorer
how would i use this to test for zombiekills?
1
nate812
10/26/2013 5:42 pm
Level 1 : New Crafter
what would i put in for (thescore)
1
nate812
10/26/2013 4:49 pm
Level 1 : New Crafter
hello, i recently made a king of the hill minigame with command blocks and teams. While everything is set up i am having trouble being able to make it so when a player has 5 points, the game ends(says the team that one) i need a code that will be team sensitive and sense when a player has 5 points, im running 1.7.2. please reply with an exact code to work.

Thanks.
1
Smorez
10/26/2013 5:04 pm
Level 68 : High Grandmaster Wizard
testfor @a[score_(thescore)_min=5]
1
anonpmc578112
06/25/2013 12:56 pm
Level 2 : Apprentice Miner
[deleted]
1
LiquidChildren1
06/25/2013 1:19 pm
Level 25 : Expert System
Don't forget about score_name_min=#, to set a lower region.

Like if you want someone with a score in Kills of 5, you say @p[score_kills=5,score_Kills_min=5]
1
TheLight
06/25/2013 2:39 pm
Level 16 : Journeyman Mage
i already knew about min and max but that is helpful advice
1
TheLight
06/25/2013 12:58 pm
Level 16 : Journeyman Mage
got that thx for your help all i need to know know is how to apply a command after to a that player i just selected

do you know that?
1
Statistical
06/25/2013 1:15 pm
Level 38 : Artisan Electrician
Use a comparator pointing out from the command block. This will activate when the testfor command is true, and deactivate when it is false. You can use the comparator's output to activate more redstone/command blocks. Just remember to use the scoreboard argument in the next command blocks to differentiate players.
1
TheLight
06/25/2013 2:39 pm
Level 16 : Journeyman Mage
thx now i can get back to making my map!
1

Welcome