Sonora API
A powerful music streaming and playback library for Minecraft mods.
Sonora API is a library mod designed to provide music streaming, synchronized playback, and distance-based volume control in Minecraft.
It allows other mods to integrate advanced music playback features without having to implement their own audio streaming and synchronization systems.
Whether you're creating a music player, a radio, a shop with background music, or an immersive environment, Sonora API provides the foundation for bringing music into your Minecraft world.
Features
Server-Side Music Streaming
-
Stream music from the server to connected players.
-
Players do not need to have the music files installed beforehand.
-
Support for joining an ongoing playback session.
Multiplayer Synchronization
-
Play the same music for multiple players.
-
Maintain synchronized playback across connected clients.
-
Support playback seeking and recovery from interruptions.
Distance-Based Volume Control
-
Adjust music volume based on the distance between a player and a sound source.
-
Configure the full-volume radius and maximum audible distance.
-
Calculate volume independently for each player.
Advanced Playback Controls
-
Play, stop, and seek music.
-
Smooth volume fading during playback.
-
Respect individual player volume settings, audio categories, and mute preferences.
API for Mod Developers
-
Integrate music playback into other Minecraft mods.
-
Control audio playback through a reusable API.
-
Build custom music systems without implementing streaming and synchronization from scratch.
For Mod Developers
Sonora API is designed to serve as a dependency for other mods.
Developers can use Sonora API to create features such as:
-
Music players and jukeboxes
-
Radios and speaker systems
-
Background music for shops and buildings
-
Location-based music playback
-
Custom music systems for multiplayer servers
Important Information
Sonora API is a library mod.
It provides the underlying audio playback functionality for other mods. Installing Sonora API alone does not add music players, radios, or other music-related gameplay content.
Additional mods are required to make use of its features.
Compatibility
-
Minecraft: 1.21.1
-
Mod Loader: NeoForge
-
Multiplayer: Supported
-
Version: 1.0.0
Sonora API — Bringing synchronized music streaming to Minecraft mods.