Basically what I want is a scoreboard above players heads that counts how many passive mobs they have killed.
I can make an objective that measures this for each individual mob using the following command:
/scoreboard objectives add <mobname>kills minecraft.killed:minecraft.<mobname> "Animal Kills"
But I can't find a command that lets me add all those scores together, so each player has their own individual animal kills score.
Closest I got was adding two of those objectives into a dummy but that doesn't update with each new kill, and also only works for two, and it seems stupid that I would have to stagger dummy variables like that to get a total for all of them.
Is there some way to add more minecraft.killed:minecraft.(mobname)
to the initial objective, or is it simply that limited?
Maybe something similar to this:
/scoreboard objectives add <mobname>kills minecraft.killed:minecraft.(mobname1),minecraft.(mobname2),minecraft.(mobname3) "Animal Kills"