mojira.dev
MC-276371

Equip sound in Equippable component cannot be set to a sound event from a resource pack

When setting a custom equip sound for an item, the field only accepts built-in vanilla sound events. Sound events added via Resource Pack are not accepted, despite armor materials themselves from a resource pack working just fine.

To reproduce this bug, create a resource pack that adds a custom sound event using a sounds.json. You will know you have done it correctly when /playsound's autofill has your custom soundEvent as an option. Now try to spawn armor that makes this sound event when equipped, such as:
/give @p minecraft:diamond_boots[item_model=frogspawn,minecraft:equippable={slot:feet,model:diamond,equip_sound:"custom.shriek"}]
Replace 'custom.shriek' here with your sound event. It will not work, though putting in a vanilla sound event such as block.anvil.destroy will.

Linked issues

Comments 4

Thank you for your report!
After consideration, the issue is being closed as Invalid.

This report does not describe a bug.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I think this is a bug. If it worked properly it would work more like player heads' note_block_sound component which accepts any sound event rather than just vanilla ones. Please check again.

Please, pay attention to the difference between sounds and sound events, as those are 2 different things

Sounds can be added via a resource pack, sound events can't be added with a resource pack

Equippable component accepts sound events and not sounds

Please use either one of those 2 commands, which will work with your sound
/give @p minecraft:diamond_boots[item_model=frogspawn,minecraft:equippable={slot:feet,model:diamond,equip_sound:{sound_id:"custom.shriek"}}]
/give @p minecraft:diamond_boots[item_model=frogspawn,minecraft:equippable={slot:feet,model:diamond,equip_sound:{sound_id:"custom.shriek", range: 64}}]

Oh, I see. Since putting a plain sound ID from playsound in there works I had mistakenly assumed that was the format. Thank you for clarifying!

Watermelon_Sir

(Unassigned)

Unconfirmed

(Unassigned)

24w36a

Retrieved