
Unable to display titles and covers for multiple sounds within the same event
adoyhamboure opened this issue · 1 comments
Hi,
I'm working on creating a resource pack that replaces all Minecraft songs with Pokémon tracks for playing on a Cobblemon server with friends. I’ve set up a minecraft folder and a musicnotification folder within my assets directory.
Here’s my sounds.json file located in the minecraft folder:
{
"music.under_water": {
"replace": true,
"sounds": [
{
"name": "minecraft:music/game/water/test",
"stream": true,
"preload": true,
"volume": 0.5
},
{
"name": "minecraft:music/game/water/pk_bw2_underwater_tunnel",
"stream": true,
"preload": true,
"volume": 0.5
}
]
}
}
Both songs referenced here are placed in the appropriate directories, and they play correctly in-game when I'm underwater.
However, my issue lies with the musics.json file in the musicnotification namespace. Here’s the structure I’m using:
{
"minecraft:music/game/water/test": {
"album": "Pokémon BW2",
"author": "Pokémon Black & White 2",
"title": "Test",
"cover": "pk_bw2"
},
"minecraft:music/game/water/pk_bw2_underwater_tunnel": {
"album": "Pokémon BW2",
"author": "Pokémon Black & White 2",
"title": "Underwater tunnel",
"cover": "pk_bw2"
}
}
Unfortunately, the title and cover art do not display for each song as expected, even though the cover images are correctly placed in textures/gui/sprites/toast.
If I simplify the file like this, it works—but only for one song:
{
"minecraft:music.under_water": {
"album": "Pokémon BW2",
"author": "Pokémon Black & White 2",
"title": "Underwater tunnel",
"cover": "pk_bw2"
}
}
However, when I try to add a customId like this:
{
"minecraft:music.under_water": {
"album": "Pokémon BW2",
"author": "Pokémon Black & White 2",
"title": "Underwater tunnel",
"cover": "pk_bw2",
"customId": "musicnotification:mn.minecraft.music.game.water.test",
}
}
…it no longer works.
I’ve tried everything I could think of but haven’t been able to resolve this issue. I also searched for a Discord server to get help but couldn’t find one, so I’m posting here.
If anyone could point me in the right direction, I’d be very grateful. Thank you so much for your time and assistance!
Nevermind, I found the solution in https://github.com/KosmoMoustache/MusicNotification/issues/67#issue-2788558141
My bad I should have read before !