作者:rebot | 分类:模组
Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2
平台: bukkit paper purpur spigot
标签: game-mechanics social technology
THE INSTALLATION INSTRUCTIONS ARE AT THE BOTTOM OF THE PAGE AND TAKE 5 MINUTES.
This plugin, along with a server resource pack, allows you to create and play custom music discs from YouTube URLs or MP3 files on your Minecraft server, with real-time updates for players.
Once installed, everything is done in-game, and there's no need to manually edit the resource pack files to add or remove custom discs.
The plugin supports Minecraft's spatial audio for music, but you can also play it in stereo.
Additionally, vanilla commands such as /playsound and /stopsound work with the custom music, so you do not need to use a disc in a jukebox.
| Create a custom disc | |
| 1. Use the "create" command and paste your URL | 3. All logged-in players receive the updated server resource pack containing the created custom disc |
| 2. Wait for the track to be downloaded, converted, and added to the server resource pack | 4. The custom disc is given to you, enjoy the music! |
![]() |
![]() |
Display the list of commands:
/customdisc help
Create a custom music disc from a YouTube URL or local MP3 file:
/customdisc create <URL OR audio_name.mp3> <disc_name> <mono/stereo>
Instructions for local MP3 files (admin-only):
- Place your MP3 file inside the
audio_to_sendfolder in the plugin directory.- Rename the MP3 file to a simple name with no spaces and no special characters.
- Run the create command with the
audio_name.mp3.
- Don't forget to include the
.mp3extension in theaudio_name.mp3field.
Give yourself a custom music disc:
/customdisc give <disc_name>
Show the list of custom music discs (click a disc name to autofill the give command):
/customdisc list
Delete a custom music disc:
/customdisc delete <disc_name>
Show details of the custom music disc you're holding (useful for debugging):
/customdisc info
Update Deno and yt-dlp dependencies:
/customdisc updatedep
Vanilla command to play a custom track (can be used with coordinates):
/playsound minecraft:customdisc.<disc_name> ambient @a ~ ~ ~ 1 1
Vanilla command to stop a custom track:
/stopsound @a * minecraft:customdisc.<disc_name>
The plugin offers three modes of use, depending on your setup and preferences:
URLCustomDiscsPack.zip.To minimize storage space and ensure fast downloads, the resource pack has the following limitations:
You must provide a personal HTTP server to host the resource pack. Depending on whether your Minecraft server and HTTP server are on the same machine or on separate machines, the HTTP server must support:
This Modrinth page focuses on the default API Mode, which is the recommended setup for most users.
You can also find this documentation on the URLCustomDiscs GitHub repository.
If you want to use the Self-Hosted Mode or the Edit-Only Mode instead, please refer to the dedicated documentation from the URLCustomDiscs GitHub repository: Self-Hosted and Edit-Only Modes documentation
For more details, you may explore the API documentation, source code and architecture in the URLCustomDiscsAPI GitHub repository.
In the meantime, you have two alternative options:
This method is unlikely to work on shared Minecraft hosting providers, such as Shockbyte, as they often do not allow execution of yt-dlp, or the IP ranges of those servers are likely already banned by YouTube.
audio_to_send folder inside the URLCustomDiscs plugin directory.This method only works for Minecraft server admins, as it requires access to the server’s file system.
ProtocolLib [Download]: used to display a custom "Now Playing" toast when a custom disc is inserted into a jukebox
The plugin automatically installs and uses the following tools (Deno and yt-dlp are also kept up to date):
This plugin requires a brief setup to ensure players automatically download the resource pack when they join the Minecraft server.
URLCustomDiscs.jar plugin into your Minecraft server's plugins folder.plugins/URLCustomDiscs folder containing a config.yml file.plugins/URLCustomDiscs/config.yml and set the following field to pluginUsageMode: apiapiBaseURL: the base URL of the remote APItoken: initially empty, automatically generated after creating your first custom discapiDownloadResourcePackURL: initially empty, automatically generated after creating your first custom disclocalYtDlp: defines whether to use the auto-installed yt-dlp tool in the plugin folder to download audio files from YouTube directly on your own server instead of relying on the external API. This field is set to false by default./customdisc create <URL OR audio_name.mp3> <disc_name> <mono/stereo> command.token and the apiDownloadResourcePackURL.apiDownloadResourcePackURL and paste it into your Minecraft server's server.properties file under the resource-pack= filed, for example:resource-pack=https://your-generated-apiDownloadResourcePackURL.ziprequire-resource-pack=true in server.properties and restart your Minecraft server.config.yml file: localYtDlp: true, then restart your Minecraft server.This option likely won’t work on most shared Minecraft hosting providers. For more details, refer to the Audio Download Options
section.
ProtocolLib.jar plugin into your Minecraft server's plugins folder for custom "Now Playing" toasts, then restart your Minecraft server.This plugin relies on a remote API and resource pack hosting maintained by me.
If you'd like to support the project and help cover server and storage costs, please consider contributing via Ko-fi. Thank you! ❤️
For any questions, help, or suggestions, feel free to join the Discord server!
Please note that it is the sole responsibility of each user to comply with applicable copyright laws and the terms of service of any music provider when using this plugin. The developer of this plugin does not assume any liability for unauthorized use or violations of such laws and regulations.
请登录后举报
暂无评论,抢个沙发吧~