Sonar

A Simple Voice Chat based Jukebox with mp3 playing

8

Sonar

Sonar

Sonar is a plugin that works with ffmpeg, ffprobe and Simple Voice Chat to create a spotify-esque mp3 player inside of Minecraft. This plugin includes song titles, covers, duration, volume control, queues, and coolest of all - live lyrics.

This may not work on all hosts: - This plugin is relatively demanding in terms of resources. It uses ffmpeg which is actively reading the mp3 files and turning it into something Simple Voice Chat can understand. It is recommended to have a GPU or a strong server. - This may not work on all hosts. It is most likely to work on servers where you own the machine as you are able to configure it. If you find a server host which this doesn't work on, contact me on discord (https://dsc.gg/bluebed)

Copyright Notice: All servers playing songs claim the responsibility of checking for any copyrighted material being played, not Sonar.

To Do List

- Cache song information in a database - Add play/pause for songs - Optimise better

How to Install

Install the plugin on your server and restart Check the console for something along the lines of:

```[11:14:38 INFO]: [Sonar] Machine OS: Windows 11, Version: 10.0, Arch: amd64```

inside 1. Navigate to the ffmpeg Sonar plugin folder (`/plugins/Sonar/ffmpeg/`) 2. Put the files inside of the zip folder into the ffmpeg folder (inside) Restart the server, if you see no errors in console it should work

If you are on Windows/macOS: 1. Ensure you have ffmpeg installed Restart the server

After Setup: 1. Put mp3 files (preferably from a spotify downloader) into `/plugins/Sonar/songs` 2. Either restart (preferred) or do `/sonar reload` and you will be able to use sonar!

How to create a Jukebox: Execute `/sonar create <id>` and replace `<id>` with your id. The place where you do the command will be where the audio plays from. you can have multiple jukeboxes within a 5 block radius of place where you created it but it will only play from where you created the jukebox.

To edit different settings, do `/sonar settings <id>` (such as `/sonar settings test`) and a UI will pop up.

There is currently no way to create this in survival, I may add a crafting recipe in the future.

Found bugs? Let me know on Discord (blue_bed) or in my discord server https://dsc.gg/bluebed

ADS