mojira.dev
MC-33112

/scoreboard statistics not behaving correctly

It seems that only the first statistic used for each criteria base (stat.useItem, stat.mineBlock, etc.) within "/scoreboard objectives add <name> <statistic> <display name>" actually behaves correctly. For example, I created an objective for stat.useItem.383 (Spawn egg) and it worked fine but if I try to make an objective for another item like: stat.useItem.<item> it does not increment with each use. The same happens with stat.mineBlock, I created an objective with stat.mineBlock.1 (Stone) and it worked fine but it did not work when I created one with stat.mineBlock.2 (Grass Block).
Edit: I think the problem is only existent within "stat.useItem" but Grass Blocks do not work with stat.mineBlock.2 for some other unknown reason.

Linked issues

Comments 4

Actually I just tested stat.mineBlock.3 (dirt) and it worked fine. I did delete the first objective (Mine Stone) but it didn't effect Grass. It may have to do with the fact the Grass blocks drop dirt, not themselves. I will continue testing and post any updates here.

Okay, I think the problem is only with stat.useItem. stat.mineBlock seems to work fine for anything other than Grass, it works with Stone which does not drop itself and cobble which does though.

Sorry for the constant changes but now stat.useItem.276 (Diamond Sword) works. I have no idea what the problem is but I do know that stat.useItem.383 works and many other items (Eggs, Endereyes, Snowballs, Fishing Rods and bows) do not work.

Timothy Hynes

(Unassigned)

Unconfirmed

objectives, scoreboard, statistics

Minecraft 13w39b

Retrieved