minecraft.used:minecraft.goat_horn doesn't increase when using goat horns
The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Mojang mappings.
public class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...
If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
Fix:
Simply calling the awardStat() method where appropriate within this piece of code will resolve this problem. The following line of code can be used to fix this issue.
player.awardStat(Stats.ITEM_USED.get(this));
Linked Issues
Created Issue:
minecraft.used:minecraft.goat_horn doesn't increase when using the goat horn
minecraft.used:minecraft.goat_horn doesn't increase when using the goat horn
- /scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
- /scoreboard objectives setdisplay sidebar UseGoatHorn
- Use a goat horn; the scoreboard doesn't increase
minecraft.used:minecraft.goat_horn doesn't increase when using
thegoat horn
- /scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
- /scoreboard objectives setdisplay sidebar UseGoatHorn
- Use a goat horn; the scoreboard doesn't increase
The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
minecraft.used:minecraft.goat_horn doesn't increase when usingthegoat hornminecraft.used:minecraft.goat_horn doesn't increase when using goat horns
The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Moojang mappings.
net.minecraft.world.item.InstrumentItem.javapublic class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
Potential Fix:
Simply calling the awardStat() method where appropriate within this piece of code should resolve this problem.
The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Mo
ojang mappings.net.minecraft.world.item.InstrumentItem.javapublic class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
Potential Fix:
Simply calling the awardStat() method where appropriate within this piece of code should resolve this problem.
is duplicated by
The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Mojang mappings.
net.minecraft.world.item.InstrumentItem.javapublic class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
PotentialFix:Simply calling the awardStat() method where appropriate within this piece of code
shouldresolve this problem.The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Mojang mappings.
net.minecraft.world.item.InstrumentItem.javapublic class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
Fix:
Simply calling the awardStat() method where appropriate within this piece of code will resolve this problem.
The following line code can be used to fix this issue.
player.awardStat(Stats.ITEM_USED.get(this));
The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Mojang mappings.
net.minecraft.world.item.InstrumentItem.javapublic class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
Fix:
Simply calling the awardStat() method where appropriate within this piece of code will resolve this problem.
The following line code can be used to fix this issue.
player.awardStat(Stats.ITEM_USED.get(this));The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Mojang mappings.
net.minecraft.world.item.InstrumentItem.javapublic class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
Fix:
Simply calling the awardStat() method where appropriate within this piece of code will resolve this problem. The following line code can be used to fix this issue.
player.awardStat(Stats.ITEM_USED.get(this));
The Bug:
minecraft.used:minecraft.goat_horn doesn't increase when using goat horns.
Steps to Reproduce:
- Create a scoreboard objective for tracking the use of a goat horn and set it to display on the sidebar.
/scoreboard objectives add UseGoatHorn minecraft.used:minecraft.goat_horn
/scoreboard objectives setdisplay sidebar UseGoatHorn
- Obtain a goat horn and use it.
- Take note as to whether or not minecraft.used:minecraft.goat_horn increases when using goat horns.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 2 using Mojang mappings.
net.minecraft.world.item.InstrumentItem.javapublic class InstrumentItem extends Item { ... @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand interactionHand) { ItemStack itemStack = player.getItemInHand(interactionHand); Optional<Holder<Instrument>> optional = this.getInstrument(itemStack); if (optional.isPresent()) { Instrument instrument = optional.get().value(); player.startUsingItem(interactionHand); InstrumentItem.play(level, player, instrument); player.getCooldowns().addCooldown(this, instrument.useDuration()); return InteractionResultHolder.consume(itemStack); } return InteractionResultHolder.fail(itemStack); } ...If we look at the above class, we can see that the awardStat() method (the method responsible for incrementing player statistics) is never called throughout this piece of code, thus making minecraft.used:minecraft.goat_horn not increase when using goat horns.
Fix:
Simply calling the awardStat() method where appropriate within this piece of code will resolve this problem. The following line of code can be used to fix this issue.
player.awardStat(Stats.ITEM_USED.get(this));
Duplicate of MC-250943.
Thank you for your report!
We're tracking this issue in MC-250943, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki



I got the same problem
Yep I found the same bug while testing, I hope this gets fixed quickly
I also had same problem. I was using command and goat horn with scoreboard, but it didn't work. I hope this could be fixed in 1.19.1.
Same problem, this issue is also present in 1.19.1
Can confirm in 1.19.2, I really hope they fix this swiftly.
Following on from my code analysis, I've double-checked my proposed fix and I can confidently confirm that it's fully functioning and works as expected, so I've attached two screenshots to this report, one of which shows the current code and the other that shows the fixed code. I feel this information may be quite insightful hence my reasoning for providing it.
MC-250943 - Current Code.png

MC-250943 - Fixed Code.png
Hi, just wanted to confirm I experience the bug as well in 1.19.2.
Set up a scoreboard objective to test for 'minecraft.used:minecraft.goat_horn' and the score does not increase after using a goat horn.
The number of times used in statistics also does not increase for goat horns.
Hope this gets fixed soon!
This is already fixed in the snapshots.