Commands that use the equippable item component will fail to run if the 'equip_sound' field contains a sound added with a resource pack, making it impossible to get an item with custom equip sounds.
What I expected to happen was...:
The command is run and an equippable item is produced that plays a sound from the resource pack when equipped, similar to how the playsound command works, with 'minecraft:item.armor.equip_generic' or silence when the resource pack is removed
What actually happened was...:
The command fails when run, with error: Malformed 'minecraft:equippable' component: 'Failed to get element ResourceKey[minecraft:sound_event / namespace:example]' The namespace doesn't seem to matter, even if it is the 'minecraft' namespace
Steps to Reproduce:
1. Select the attached resource pack or any resource pack with custom sounds
2. Run /playsound minecraft:example.test_pop and/or /playsound other:example.test_pop to make sure the game can access the sound as it should (optional)
3. Run /give @s minecraft:stick[minecraft:equippable={slot:'head',equip_sound:'example.test_pop'}] and/or /give @s minecraft:stick[minecraft:equippable={slot:'head',equip_sound:'other:example.test_pop'}]
Thank you for your report!
We're tracking this issue in MC-276371, 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 (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.