I'm working on a king of the hill map right now and I'm pretty sure i know how to set everything up, but the only problem im having is that when the players are at the top of the hill any players standing on the gold block gets points. Is it possible for me to make it so that if 1 person is on the gold block he will get his points but if 2 or more people are standing on the block the no one gets points until their is only 1 person standing on it?
uhm but you gotta have like each person is in one scoreboard team and if one player stands on the golden block and the command block detects the person and activates a clock adding points to him and if someone else is standing there like 2 players it will trigger another command block both command blocks of both players so if player A is getting points and player B stands on it then it will block player A and when player A is standing on it Player A will block Player B's command block with a testfor and stopping it from activating the clock that adds points
Theres alot of command blocks going to be needed for this and an each set for how many players u like it, if its 8 then 8 kinds of this setup:
"A" will have a testfor command detecting if hes on the block and goes to a clock that keeps adding points and in the connection of the testfor to the clock there are stoppers so if B is on the gold b stopper will activate and stop the current of "A's" testfor from reaching the points
If you look at the attached image, you can see that all you need is a clock activating a command block, with a comparator coming out of that, two pieces of redstone and then a redstone into another clock. I've just used a 3x3 platform as 1x1 is way too small and any bigger is just unnecessary. So here's how it works.
The first command block (closer to the gold blocks) tests for any players on that platform with:
where x is the centre co-ordinate of the gold blocks and
where y is the centre co-ordinate of the gold blocks and
where z is the centre co-ordinate of the gold blocks.
So if you were to stand on the centre, those would be the co-ordinates. The 1 is the range. As it is 3x3 it would be 1. If it was a 5x5 platform, change it to 2.
Have a comparator come out of that with two pieces of redstone dust in a line leading into another repeater into another clock. What the comparator does is it sends out a signal power of the number of people it finds. If there are two (or more) people, it will send a power of 2 (or more, respectively), stopping the second clock from going. If there's 1 person, the clock will not be stopped.
The second command block has this command.
/scoreboard players add @a[x,y,z,1] Points 1
'Points' is the objective name, so whatever you have called it, replace it in the command.
This will add 1 point to any player standing on that 3x3 platform. Make sure that the x, y and z are the same as the other command. Again, the range is 1.
This command will continue to add points to the player standing on the blocks until they are killed/hit off of it.
Hopefully this is what you needed help with
Ok just making sure on the second command block there is a torch right?
Also, what happens if I put less delay on the repeaters?