mojira.dev
MC-269503

Goat horn default instrument is missing when using /give

While updating ViaVersion/ViaBackwards to support the latest snapshot, I noticed that the default handling of the goat horn instrument is quite broken. 1.20.4 used to check if an instrument is present, and if not, it just sets the first instrument from the registry as default. Since 24w09a, this behaviour seems to be broken, when using /give to get an goat_horn, no sound is playing because the default INSTRUMENT component isn't being set. I wonder if this is intended behaviour or an issue.

 

Here the list of item components of the goat_horn when using /give:

[media]

Here the same when using the creative inventory:

[media]

 

Here the 1.20.4 nbt handling:

[media]

Attachments

Comments 1

I can confirm that the instrument on the item is displayed as 'Ponder', but does not actually have any instrument components.
Relates to MC-251350 MC-251320 MC-251350

Expected result would either be that 'Ponder' would be present, and work, or that 'Ponder' would not be present, and the item would have no instrument displayed to the player.

This command should be used to get a functional goat horn:

/give @p minecraft:goat_horn[minecraft:instrument="ponder_goat_horn"]

FlorianMichael

gegy

Community Consensus

Platform

Important

Commands, Items

24w11a, 24w12a

24w14a

Retrieved