Closed S-N00B-1 closed 2 years ago
Correct, you could add custom songs right now via resource packs, though (as you can tell), the feature is largely unfinished as I still have quite a bit more to add. I don't know when I plan on finishing it, as I'm working mostly on other fixes and QoL stuff, but it'll be one of the first things I work on likely when the mod becomes more stable!
Using resource packs, customs songs can be added into playlist. This is fine and works relatively well. However due to the way the code matches the album string to the album art files, it is unable to accept custom album arts.
(see here)
``` public static class_2960 matchUpAlbumToArt(final String album) { switch (album) { case "Volume Alpha": { return new class_2960("playlist", "textures/album_art/volumealpha.png"); } case "Volume Beta": { return new class_2960("playlist", "textures/album_art/volumebeta.png"); } case "Nether Update": { return new class_2960("playlist", "textures/album_art/netherupdate.png"); } case "Caves & Cliffs": { return new class_2960("playlist", "textures/album_art/cavesandcliffs.png"); } case "Axolotl": { return new class_2960("playlist", "textures/album_art/axolotl.png"); } case "Dragon Fish": { return new class_2960("playlist", "textures/album_art/dragonfish.png"); } case "Shuniji": { return new class_2960("playlist", "textures/album_art/shuniji.png"); } case "Wild Update": { return new class_2960("playlist", "textures/album_art/wildupdate.png"); } default: { return new class_2960("playlist", "textures/album_art/unknown.png"); } } } ```Instead of matching album arts from a set list, adding another variable into the song info files could allow for resource packs to specify custom files.
this would also mean modifying the code to insert the album art string into the file path