mojira.dev
MC-54972

"minecraft.used:minecraft.<ITEM>" doesn't increase when items are used on entities

The Bug:

"minecraft.used:minecraft.<ITEM>" doesn't increase when items are used on entities.

There are several examples of where this issue can be seen. Here is a list of some of these.

  • Shearing mushrooms, sheep, and snow golems.

  • Feeding food to entities.

  • Using a saddle on entities.

  • Using a chest on entities.

  • Using flint and steel to detonate a creeper.

  • Using buckets or bowls to milk entities.

  • Using fuel on a furnace minecart.

  • Using a dye to color the collar of a pet.

  • Using an iron ingot to heal an iron golem.

  • Using gold to barter with piglins.

  • Using water buckets to catch fish and axolotls.

  • Using name tags on entities.

  • Using maps on item frames.

  • Putting items into item frames.

Steps to Reproduce:

  1. Create a scoreboard objective for tracking the usage of some shears and set it to display on the sidebar by using the commands provided below.

    /scoreboard objectives add UseShears minecraft.used:minecraft.shears
    /scoreboard objectives setdisplay sidebar UseShears
  2. Obtain some shears and summon a sheep.

  3. Shear the sheep using the shears.

Observed Behavior:

The scoreboard doesn't increase.

Expected Behavior:

The scoreboard would increase.

Linked issues

MC-87533 "stat.useItem.minecraft.shears" stat doesn't work Resolved MC-92142 stat.useItem.minecraft.coal not increasing when using coal or charcoal on minecart furnaces Resolved MC-97786 stat.useItem.minecraft.name_tag will not increase score when player uses name tag Resolved MC-99913 Stat useItem.minecraft.shears do not increment when shearing sheep Resolved MC-113932 stat.useItem.minecraft.lead only counts on weird occasions Resolved

Attachments

Comments 42

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.

I've substantially overhauled this ticket to absorb the unaddressed cases left over from MC-31047, broadening it to expose the underlying issue.

Still exist in snapshot 15w37a, Also one more that wasn't added "Using bone on wolf"

Confirmed for

  • 15w45a for name tag on mob

Confirmed for 1.9

32 more comments

Can confirm in 1.17.1.

I'd like to request ownership of this ticket since the reporter has been inactive for over a year. I'm willing to provide all of the appropriate information and will keep this ticket updated.

I think that it's a good idea. I agree.

This issue also affects placing wolf armor onto wolves and shearing wolf armor off of wolves in Minecraft 23w51b.

Also affects putting maps into item frames, or more generally putting any item into an item frame.

M F

Avoma

(Unassigned)

Confirmed

Platform

Normal

Player, Statistics

mojang_internal_1

Minecraft 1.7.9, Minecraft 14w19a, Minecraft 1.8.2-pre6, Minecraft 15w37a, Minecraft 15w45a, ..., 1.21.3, 1.21.4, 25w08a, 1.21.5, 1.21.6

Retrieved