mojira.dev
MC-31047

Use Item Stat Corresponds to Left-click, Not Right-click

I was trying to make a scoreboard objective that detects when you use shears, but when I added it and used the shears, it didn't work. I tried shearing both mooshrooms and sheep. Neither worked, and I don't know why. It should work because stat.useitem.359 should detect when shears are used.

Step 1: Add an objective that detects when you use shears (food, shears, bows, potions, and many more also do not work)
(/scoreboard objectives add Shear stat.useItem.359)

Step 2: Set the display to sidebar so you can see if it worked or not.

Step 3: Shear a sheep. (You can also try using the items listed above)

If you followed those steps correctly, you should have not gained any points. It should work, but for some reason, it doesn't detect when you used the shears.

Linked issues

Comments 23

"Use" is defined as when the tool consumes durability. If you are in creative mode, the shear's durability wont go down, so the statistic wont go up. Switch to survival or adventure mode and try it.

Confirmed in Survival.
The shears doesn't also show up in the Items statistics.

Still doesn't work in 13w38a.

This is also the case with snowballs, eggs, books, maps, food, potions, and bows too 😞

Still doesn't work in 13w39a.

13 more comments

Bjorn Pijnacker,George Stichel
This issue is fixed for the next upcoming snapshot 14w09a or 14w10a or...

(1.8) Still not fixed...

Affects shears and tools, also blocks... Very annoying and this makes the whole stat.useItem useless

Does work with cocoa beans

I've verified that the specific issue referred to in the title (items that are primarily used by right-clicking, such as bows, food, potions, flint and steel, buckets, spawn eggs, etc. being counted as used when left-clicking, rather than right-clicking) has been fixed, and split the other part of the issue (right-clicking on mobs does not count as using the item) into MC-54972.

Re-open? Doesn't work in latest snapshot 15w35a.

I just tested this in 15w38b, and it's either still fixed, or was broken and then fixed again. What exactly did you try? Are you sure you're not experiencing MC-54972?

Jacob Lawson

michael

Confirmed

bow, left-click, objectives, scoreboard, shears, sheep, statistics

Minecraft 13w36b, Minecraft 13w37a, Minecraft 13w37b, Minecraft 13w38a, Minecraft 13w39a, ..., Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03a, Minecraft 14w03b, Minecraft 14w06b

Minecraft 14w10a

Retrieved