Sound definitions manage audio files and sound events in Minecraft add-ons, mapping sound identifiers to audio files and configuring playback properties.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mojang/minecraft-creator-tools/llms.txt
Use this file to discover all available pages before exploring further.
SoundDefinitionCatalogDefinition
SoundDefinitionCatalogDefinition manages the sound definitions catalog file (RP/sounds/sound_definitions.json), which maps sound event names to audio files.
Class Signature
Loading Sound Definitions
Working with Sound Definitions
Sound Definitions JSON Structure
Sound Definition Properties
Sound Definition Object
Sound Categories
ambient- Ambient environment soundsweather- Weather sounds (rain, thunder)player- Player action soundsneutral- Neutral mob soundshostile- Hostile mob soundsblock- Block interaction soundsbucket- Bucket soundsbottle- Bottle soundsui- User interface soundsmusic- Background music
Working with Audio Files
Finding Sounds by Path
Auto-creating Definitions
Checking if Sound Exists
Complete Sound Definition Examples
Multiple Variants with Weights
Music with Streaming
Positional Sound with Distance
Creating Sound System
Using Sounds in Definitions
In Entity Definitions
In Animation Definitions
Audio File Formats
Supported audio formats:.ogg- Recommended (Ogg Vorbis).fsb- Supported (FMOD Sound Bank).wav- Supported but larger file size
- Sample rate: 44100 Hz
- Bit depth: 16-bit
- Channels: Mono for 3D sounds, Stereo for music