806 B
806 B
Custom-Music-Discs-Minecraft-Datapack
To use create a folder called: music
Fill it with music in .ogg format and if you want distance to work, make sure its mono not stereo
Then run:
run.bat
You should see 2 folders generated:
cmd_dpcmd_rp
- Copy the
cmd_dpto datapacks - Copy the
cmd_rpto resourcepack
Internally the program creates an index of files, so if you add music into the music folder and rerun the program, updating the resourcepack and datapack will allow the old cds to work.
Also the code randomlly generates .pngs for each audio file that is generated. The same music file will always generate the same color disc.
Limitations, if you remove music the indexes will be messed up and old disks will no longer work.
Todo add a gui interface