As players join and leave, I need something(s) giving a redstone signal for every number of players from 1-10, then if there is more than 10. So I can have one thing happen at 1 player, something different happen at 2, 3, 4 ...  I have tried using a comparator output from "/testfor @a", but I couldn't get it to do things like having the command blocks for players=1 and players=2 to turn off if players=3. Everything else I've tried had the same problems, and everything I've found online is for testing for a min/max amount of players.
5989
I want to run a command when there are only 10 entities left. I know you can use /execute unless entity to detect when all matching mobs have died, but it doesn't work if you want to run a command when there are for example 10 entities left.  A command like /execute if entity @e[limit=10] does not work, it also triggers if there is only one entity.  Such a counting system could also be used to determine once there is only one player left in an arena, meaning they have won a battle or similar.
78093
With the new logic gates in the 1.3.1 update, is it possible to create some wiring circuit that counts how many times a trigger was activated? In other words, is it possible to make a circuit that outputs a trigger every two input triggers?  I've done some experimenting but the nature of wires and there being no intrinsic on/off state in Terraria makes it pretty counter-intuitive compared to real world logic circuits.
78023
I'm making a randomizer that randomly clones 1 of the 9 units to all armorstands called "chunk". Inside every unit is an armor_stand called "Unit" and this is the command I used:  execute @e[type=armor_stand,name=chunk] ~ ~ ~ execute @r[type=armor_stand,name=Unit] ~ ~ ~ clone ~-3 ~-1 ~-3 ~3 ~5 ~3 ~ ~15 ~  What this does is, it clones a unit 15 blocks above itself but I want it to clone ~-3 ~15 ~-3 above every armor_stand called "chunk"  You can see a random unit is clone ~ ~15 ~ above the armor_stand calling unit. The armor_stand you can see is called "chunk".
16596
I am looking to try and set multiple commands in a single command block, but so far everything I have tried just returns "Unknown Command".  What is the format for writing multiple commands in a single command block in Minecraft 1.8?  Can I use either of the following:  Command:(command here) Command:(command here)     /command here; /command here;   Or is there another format?
25027
I can't seem to figure this out. I am trying to testfor if a player is near certain coordiantes, namely {-9, 100, 16}, and then to teleport them somewhere else.  In earlier versions it would be /testfor @a[x=-9,y=100,z=16,r=2] in a repeating command block going into a chain conditional command block that says /tp @p ~8 ~ ~, although it seems in 1.13 they have removed /testfor. I've seen that apparently I'm supposed to use /execute now in some way but I'm not sure how.
3681
I am trying to make a command block that when powered, it will looks for a specific player in a 5 block radius of the command block. I tried   /testfor @p[r=5][name=&lt;name of player&gt;]   but it doesn't work.
35110
Can you use the /testfor command in minecraft 1.8 to find out if a player has died ?  I need it for my map, where 2 players (Only) are pitted against eachother. I want it so that when one of them dies, it will detect the death and declare the victor.
57
What if I want to make a command like this:  execute @e[score_A=10] ~ ~ ~ summon Creeper   So that the entity must have a score of 10 (not less, not more)?  Does it even exist that or a [score_A_max=] argument?  I know about scoreboard players test, but i guess it is not the case to use it.
34767
I have a realm with a few of my friends and i want to play the creeper primed sound at him but i am afraid he will see the command and ignore it  Im using: /playsound minecraft:entity.creeper.primed block  Version: 1.14.2
22391
I'm interested in negating fall damage with command blocks by giving players Resistance as they're falling. How can I use /testfor to tell whether a player is on the ground or in the air?
64159
I made a redstone clock that involves a command block with /testfor and a comparator attached to it. Whenever the /testfor works, the comparator turns on, but completely.(meaning it does not turn off after that) I want it to turn on, have a small delay, then turn off. is there some way that i should change this clock, or should I be doing something different with the comparator?
106394
How can I test for a player that has a wooden button in his 1st hotbar slot? (no matter if selected or not).  I tried:  /testfor @a {Inventory:[{Slot:0,id:"minecraft:wooden_button"}]}   But the command block outputs:     [player name] did not match the required data structure
29208
I'm looking to schedule 16 players to play a round robin tournament with each other such that there are 4 players at each table.  I'd like for each player to play with each other player exactly once over the course of 5 rounds.  I just took a look at this post:  , and I was wondering if anyone knows if the case n=m=4 has been solved, and if so what that solution is.
85934
I've been making a map for 1.10 and it's going great, but 1.11 shows great mobs to use for it. However, most things have channged in command syntax. For example, /kill @e[type=ArmorStand,r=6] is now /kill @e[type=Armor_Stand,r=6]  What about /testfor? I can't find a way to testfor a player to stand on a block and give them an effect.   What's is going on in this image is that a redstone clock is running into this command /testfor @a[1117,20,507,r=1] (if I was to stand on them cords the comparator would turn on and power that command block), but it only works in 1.10... from 1.11 snapshots, I've seen some errors of it, like it now needs to have {} at the beginning and end of it. (e.g. /testfor @a{[1117,20,507,r=1]})   It's still not working, though, so does anyone know how to get it to work?
95801
I want to make a scoreboard on my server that broadcasts a message to players who join the server for the first time, but I don't know what the scoreboard is. If you don't know what I'm talking about here's an example /scoreboard objectives add join [MY PROBLEM]
80787
Is there a way to find where other players are in the Minecraft world without asking them for their coordinates? I play with friends. We've sort of aligned ourselves in a 2 vs 2 match-up, and since we wanna PvP with them, we need to find them first.
3774
I am trying to test for any player that is on Y level 118.  Here is the command I am using:  /testfor @a[y=118]   The problem is, the command isn't working as expected. In my chat when I type this command, it reads:  Found Boomcrasc078    The problem is, I am not on y=118 when I run this command. What could be the problem?  I have also tested with a space:  /testfor @a [y=118]   but it still doesn't work.