I've come across a confusing problem using the playerKillCount scoreboard type in the new snapshot. I don't know if its a bug with it or not but I would expect this to be.
This is an image of what I'm working with:
Please excuse me if I don't explain this clearly.
I am only using the first two columns here. The two redstone blocks would normally not be there, I added them to stop the command blocks after them from running.
What this should do is add 1 to the kills score (set to playerKillCount) for the player that killed another player, add 1 to a points score (set to dummy), then remove 1 from the player's kills score.
The problem is that when a player kills another player, their kills score goes to 1, the points score goes up by 1, the kills score goes back to 0, but then after all that the other player's kills score starts dropping into the negatives.
The redstone line at the bottom is from a hopper clock, the two command blocks above test if the two player's kills scores are 0. If one is not, the hopper clock above it would run leading to a command block that adds 1 to the player's points score, then to another command block that removes 1 from the players kills score.
That should make it so that the hopper clocks that add to a player's points score would only run when they kill another player, and would keep running until their kills score is back to 0.
Nothing should be pointing to the other player's scores, so why does their kills score suddenly start dropping like this? It only starts happening after all the points for the player who killed another player are added.
If anyone knows the problem PLEASE help me find the reason, I've been looking at this for 30 minutes straight and cannot figure it out.
This is an image of what I'm working with:
Please excuse me if I don't explain this clearly.
I am only using the first two columns here. The two redstone blocks would normally not be there, I added them to stop the command blocks after them from running.
What this should do is add 1 to the kills score (set to playerKillCount) for the player that killed another player, add 1 to a points score (set to dummy), then remove 1 from the player's kills score.
The problem is that when a player kills another player, their kills score goes to 1, the points score goes up by 1, the kills score goes back to 0, but then after all that the other player's kills score starts dropping into the negatives.
The redstone line at the bottom is from a hopper clock, the two command blocks above test if the two player's kills scores are 0. If one is not, the hopper clock above it would run leading to a command block that adds 1 to the player's points score, then to another command block that removes 1 from the players kills score.
That should make it so that the hopper clocks that add to a player's points score would only run when they kill another player, and would keep running until their kills score is back to 0.
Nothing should be pointing to the other player's scores, so why does their kills score suddenly start dropping like this? It only starts happening after all the points for the player who killed another player are added.
If anyone knows the problem PLEASE help me find the reason, I've been looking at this for 30 minutes straight and cannot figure it out.
MEEAP