mojira.dev
MC-58793

Eating cake is not detected by scoreboard

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

You put down the scoreboard objective as crafting the cake.

It increases every time a cake is crafted.

Try stat.mineBlock. or stat.useItem.

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")

stat.mineBlock doesn't work on cakes at all. If you type it in, you get this error:

[00:04:50] Usage: Invalid objective criteria type 'stat.mineBlock.minecraft.cake'

I presume because a cake isn't broken in the traditional sense.

Isawan Millican

(Unassigned)

Unconfirmed

Minecraft 14w25b

Retrieved