The jukebox song registry in 24w21b can't regist the music in the non-vanilla resourcepack as Item component, game will report an error when you try to enter the world.
Reproduce steps:
1. Add a music to a resourcepack.
2. Regist this music in datapack.
3.Try to enter the world, it will report an error.
4.Change the "sound_event" in the 2 step to any vanilla sound effects.
5.Try to enter the world, it works successfully.
2024.5.24 20:40 (UTC+8):
According to the pinned comment, the key "sound_event" followed a compound can work with third-party music, but followed a string must use vanilla music.
Linked issues
duplicates 1
Attachments
Comments 4
The sound events defined in sounds.json was only sent to the client and resolved into a client-side content.
Therefore, it is not a registry and cannot read by datapack. This issue might not easy to solve unless sound events were data-driven.
Thank you for your report!
We're tracking this issue in MC-272349, 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.
I believe this has to be the following: