Paper only Plasmo Voice addon. Play audio from Youtube and other sources in Minecraft using music discs. Inspired by SVC's AudioPlayer & CustomDiscs.
The addon can stream audio from various sources instead of saving audio files on the server. It even supports Youtube and Twitch live streams. Thanks to the brilliant LavaPlayer library.
- Install Plasmo Voice, ProtocolLib and pv-addon-lavaplayer-lib. You also need to install Plasmo Voice on your client.
- Download this plugin from Modrinth and drop it into the
~/plugins
folder. - Restart the server
/disc burn <url> [name]
– Create a disc with custom audio from the URL. You need to hold a music disc in your hand.
/disc erase
– Return a custom disc to a normal one.
/disc search <query>
– Search tracks on YouTube.
/disc cancel [player]
– Cancel user's goat horn playback. You need pv.addon.discs.cancel.other
permission to cancel for others.
Commands are only available to OP by default:
pv.addon.discs.burn
– Burn command
pv.addon.discs.erase
– Erase command
pv.addon.discs.search
– Search command
pv.addon.discs.cancel
– Command to cancel goat horn playback
pv.addon.discs.cancel.other
– Command to cancel goat horn playback for the other player
pv.addon.discs.burn.burnable_check_bypass
– If enabled in a config, you can only burn special discs. This permission allows you to bypass this check
Available to everyone by default:
pv.addon.discs.play
– Use custom music discs
Addon can load audio from:
- YouTube videos and live streams
- SoundCloud
- Bandcamp
- Vimeo
- Twitch live streams
- Direct HTTP URLs
If you want to stream audio from direct URLs
- MP3
- FLAC
- WAV
- Matroska/WebM (AAC, Opus or Vorbis codecs)
- MP4/M4A (AAC codec)
- OGG streams (Opus, Vorbis and FLAC codecs)
- AAC streams
- Stream playlists (M3U and PLS)
- Make sure you're using the latest versions of
pv-addon-discs
andpv-addon-lavaplayer-lib
. - Set
youtube_source.use_oauth2
totrue
inplugins/pv-addon-discs/discs.toml
. - Restart your server (
/vreload
will not work). - When
pv-addon-discs
initializes, you'll see a message in your console like this (code will be different): https://i.imgur.com/r1o5v8v.png. Follow the instructions in the console message. - After successful authorization, you'll see a message in your console: https://i.imgur.com/BD9jCRe.png. You don't need to save token manually, it will be saved when the server is stopped.
- Done! YouTube tracks should now work as expected.
This usually means that your server can't reach the server hosting the track. Check your server's internet connection and contact your hosting provider if the issue persists.
If you have HTTP proxy, you can set it using http_proxy
config option in plugins/pv-addon-discs/discs.toml
.
This feature is only available starting from 1.1.x.