mojira.dev
MC-231908

"minecraft.used:minecraft.<WEARABLE_ITEM>" doesn't increase when equipping items through the inventory

The Bug:

"minecraft.used:minecraft.<WEARABLE_ITEM>" doesn't increase when equipping items through the inventory.

Steps to Reproduce:

  1. Create a scoreboard objective for tracking when you use some iron boots and set it to display on the sidebar by using the commands provided below.

    /scoreboard objectives add UseIronBoots minecraft.used:minecraft.iron_boots
    /scoreboard objectives setdisplay sidebar UseIronBoots
  2. Equip some iron boots by right-clicking while holding them in your hand, and take note of how the scoreboard increases.

  3. Unequip the iron boots.

  4. Equip the iron boots again, but this time, through the inventory.

  5. Take note as to whether or not "minecraft.used:minecraft.<WEARABLE_ITEM>" increases when equipping items through the inventory.

Observed Behavior:

"minecraft.used:minecraft.<WEARABLE_ITEM>" doesn't increase when equipping items through the inventory.

Expected Behavior:

"minecraft.used:minecraft.<WEARABLE_ITEM>" would increase when equipping items through the inventory.

Attachments

Comments 1

Can confirm. Might relate to MC-94060.

Avoma

(Unassigned)

Confirmed

Platform

Low

Commands

1.17.1, 21w37a, 21w38a, 21w43a, 1.18 Pre-release 1, ..., 1.20.1, 1.21, 1.21.3, 1.21.4, 1.21.7

Retrieved