Cake eaten is not detected by the scoreboard statistic. Here are the commands I used:
/scoreboard objectives add cake stat.useItem.minecraft.cake cake
/scoreboard objectives setdisplay sidebar cake
What should happen is the cake count should increase every time a cake is eaten.
What actually happens is nothing is detected.
Comments 5
Opps, I put the wrong command in the description. I had meant to type useItem
However, it seems that it's already used to detect when cake is placed down. I suppose that makes this more of a suggestion than a bug. Thanks anyways, I will be taking this to /r/minecraftsuggestions
Did you try stat.mineBlock ?
Maybe this increments only, if the cake is eaten completely (or it doesn't increment at all, because the cake is not dropped when "mining")
You put down the scoreboard objective as crafting the cake.
It increases every time a cake is crafted.