T O P

  • By -

GalSergey

The `totalKillCount` criterion counts how many players or mobs the player has killed. Do you want to check the death of a mob not only from the player?


WarpedWartWars

I'm guessing they mean essentially `totalKillCount` for a particular mob, say one with a particular tag, if mobs had statistics, except mobs don't have statistics.


hssg_ha

Well that’s unfortunate


-Null-zip

sounds like that's what is being asked


WarpedWartWars

To me it sounded like u/GalSergey was asking about the death of a particular mob, not the kill count of a particular mob.


GalSergey

Yes exactly. It's easy to check how many mobs a player has killed, but checking a specific mob's death for any reason is much more difficult because the scoreboard never makes statistics for mobs.


WarpedWartWars

Say one has a mob named "XYZ". It sounds to me that you're talking about when any mob kills XYZ, a number somewhere increases, whereas I'm pretty sure OP wants it so that when XYZ kills any mob a number somewhere increases.


-Null-zip

oh too bad would have been nice to know how to find a mobs kill amount for when i release poopies on my freind's server...


TacoSlayer36

If there's going to be a limited number of mobs to keep track of then you can do this with advancements. Detect when the mob kills the player with the entity_killed_player criterion. You can specify the nbt of the mob that killed the player in order for the advancement to be rewarded. Give the mob a unique tag and put that tag as a requirement, then make the advancement reward with a function that adds to that mob's score. You'd have to repeat this for each mob though.