Equippable data component doesn't allow for custom sounds
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'}]
Environment
Windows 10
Created Issue:
Equippable data component doesn't allow for custom sounds
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 removedWhat 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' namespaceSteps 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'}]Environment
Windows 10
duplicates
MC-276777, MC-276619, and MC-276783 are all included in this issue, and MC-276783 describes the same issue as MC-276619, which shows to be "Invalid" since it is a "Feature Request", so maybe durability-related items or items with durability(damage) NBTs(described in MC-276478) are supposed to not yield an item after 'use_remainder' is toggled?
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.