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
is duplicated by 13
relates to 2
Comments 23
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.
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?
"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.