> For the complete documentation index, see [llms.txt](https://wiki.modernmodpacks.site/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.modernmodpacks.site/wiki/hellish-mods/digitality/resource-packs/sounds.md).

# Sounds

There also exists different types of sounds but they're so similiar that they are all made with one method (similar to how [textures](/wiki/hellish-mods/digitality/resource-packs/textures.md) work)

```java
resources.sound(<Path/File object pointing to your .ogg sound file>, "<sound type (record/neutral/entity/etc.)>", "<internal resource name (optional)>");
```

```java
// 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");
```

**Note**: Don't forget to also register your sound with `<sound event register>.register("<some name>", () -> new SoundEvent(new ResourceLocation("<mod id>", "<file name without the .ogg>")));`
