mojira.dev
MC-86951

Drop item scoreboard objective increases with /give

Description from MC-87108:

When you have a scoreboard that tracks whenever a particular item is dropped, it both increments for when you drop that item (as expected) but also for when you use the /give command to give the player that item.

For example:

/scoreboard objectives add EggDrop stat.drop.minecraft:spawn_egg

Then upon doing...

/give @p spawn_egg

... the 'EggDrop' scoreboard increments by 1.

I have tested this with a few other specific items and the same problem occurs.
However for dropping items in general, using stat.drop works as intended, so it's just for dropping specific items. I'm also aware that this same problem happened with the 'stat.drop' when that stat was first released, so I expect it's the same kind of problem here.

Linked issues

Comments 2

Could be because you're the one running /give and given items are actually just entities spawned right in front of you which you pick up.

Yeh... i know, but I said drop item SC objective and not pickup item SC objective. And it's also run by a command block

Svit Štarkl

michael

Confirmed

Minecraft 15w34d, Minecraft 15w45a

Minecraft 15w49a

Retrieved