When specifying a sound event that is not part of Minecraft by default inside of a goat horn instrument JSON file, the instrument fails to load and the world cannot be opened. This is likely due to that the server doesn't know what sound events have been added by resource packs.
Steps to reproduce
Create a new sound in a resource pack's
sounds.json
file, which points to a sound file.
For example:
"test_sound": { "sounds": [ "namespace:test_sound" ] }
In a data pack, create a goat horn instrument JSON file in the
data/instrument
folder. In thesound_event
field, specify the sound even in the resource pack.
For example:
{ "sound_event": "namespace:test_sound", "use_duration": 0.001, "description": "", "range": 16 }
Open the world.
Observed result
The world cannot be opened, as errors were found in the pack. The log contains something akin to this error message:
Caused by: java.lang.IllegalStateException: Failed to get element ResourceKey[minecraft:sound_event / namespace:test_sound]
Expected result
No error appears and the custom goat horn instrument is able to be used.
Linked issues
relates to 2
Comments 3
https://gist.github.com/boq/08ec7cd9691967d907286b5aa5d6c230 claims another victim
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
We do not have enough information to reproduce this issue.
Please include the following information to help us understand your problem:
Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos, or worlds needed to help reproduce this issue.
Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki