mojira.dev
MC-76590

killedByTeam.COLOR doesn't increment upon death

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

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:

/scoreboard teams option TEAM1 color green
/scoreboard teams option TEAM2 color green
/scoreboard teams join TEAM1 @p
/scoreboard teams join TEAM2 @p

and - based on the last two commands - do you try that in single player ?

Edit: Fix typo

Yeah, the "killedByTeam" criterion is checking the color of the team, not the name. If the color is assigned, it works fine.

I've tried single player and multi-player. I think you guys are right about the color assignment though ill give that a try. Thanks

Anthony Morris

(Unassigned)

Unconfirmed

Minecraft 1.8.1

Retrieved