Sounds
resources.sound(<Path/File object pointing to your .ogg sound file>, "<sound type (record/neutral/entity/etc.)>", "<internal resource name (optional)>");// This code registers the "test.ogg" file in the game instance directory as a music disc sound
VirtualResourcePack resources = new VirtualResourcePack("some_mod_id");
resources.sound(FMLPaths.GAMEDIR.get().resolve("test.ogg"), "record");Last updated