When a player from one team kills a player from another the score for the objective doesn't increment as it should. I have checked several times for typos but didn't find any. I have removed and remade the objective and teams too but it didn't help. I know that the commands are correct because I am able to manually add a point to the objectives and the command block system activates correctly then.
Here is the commands, maybe I am missing something.
/scoreboard objectives add KILLEDBYGREEN killedByTeam.green Killed_by_Green
/scoreboard objectives add KILLEDBYBLUE killedByTeam.blue Killed_by_Blue
/scoreboard teams add green
/scoreboard teams add blue
/scoreboard teams join green @p
/scoreboard teams join blue @p
Comments 3
Yeah, the "killedByTeam" criterion is checking the color of the team, not the name. If the color is assigned, it works fine.
Aren't you missing the assignment of the team colour to the team ?
With your commands you have two teams named "green" and "blue" but those teams don't have a colour.
Try:
and - based on the last two commands - do you try that in single player ?
Edit: Fix typo