mojira.dev
MC-233744

Scoreboard "used:minecraft..." objectives do not accept NBT tags to items

Very likely a feature request, but you cannot specify any NBT data into those items, which makes me believe this is a bug/oversight.
For example:
Try to add NBT tags to

/scoreboard objectives add Test minecraft.used:minecraft.potion
/scoreboard objectives add Test minecraft.used:minecraft.potion

❌  It doesn't let you.
You cannot for example have a score that only works with speed potions.

Comments 3

It doesn't support NBT because this criterion is statistic-based. The game won't record the NBT of all the items you've used for a statistic. Because if the game do this, the save files' size will become too large.

 

It's true that the scoreboard currently has no criterion that supports nbt, but that is a feature request rather than bug repport. You can put this suggestion in https://feedback.minecraft.net/

Fix would be useful though

You can use advancements for this

W_V

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved