关于
URLCustomDiscs 允许你通过一条命令将任何歌曲变成真正的 Minecraft 音乐唱片。
粘贴音频文件的链接,为唱片命名,几秒钟后它就会出现在你的物品栏中。
所有在线玩家都会立即获得新唱片:无需编辑资源包、无需重启、无需上传文件。一切都在游戏内完成。
你的自定义唱片与原版唱片行为完全一致:它们可以在唱片机中播放,可以被漏斗抽取、使比较器充能,也可以存放在箱子中或送给朋友。
工作原理
1. 输入 /customdisc create 并附带音频类型、名称和链接 |
3. 每位在线玩家都会收到更新后的唱片包 |
| 2. 歌曲被下载、转换并添加到包中 |
4. 唱片已放入你的物品栏:把它放进唱片机吧! |
 |
 |
一分钟上手
-
从 Modrinth 或
Releases 页面下载 URLCustomDiscs.jar。
-
将其放入服务器的 plugins 文件夹并启动服务器。
-
在游戏中创建你的第一张唱片:
/customdisc create mono "My song" https://example.com/song.mp3
就是这样!无需进行任何配置:免费的 URLCustomDiscs API 会为你转换歌曲并托管唱片包。当玩家加入时,Minecraft 会要求他们下载该包;他们只需点击 Yes(是) 即可。
注意:
你需要使用带有 Java 25 的 Paper 26.1 或更高版本。对于 Minecraft 1.21 到 1.21.11,请使用
URLCustomDiscs v2,仅限自托管模式:
v2 API 已关闭。
创建唱片
/customdisc create <mono|stereo> "<disc name>" <link>
单声道还是立体声?
mono(单声道):声音来自唱片机,随着你走远而逐渐减弱,类似于原版唱片。
stereo(立体声):保留原始立体声音效,在唱片机周围各个位置听到的效果相同。
哪些链接可用? 指向音频文件本身的链接(.mp3、.ogg、.wav…):
- ✅ Discord 上发送的文件(右键单击它,复制链接)
- ✅ Google Drive 或 Dropbox 的分享链接
- ✅ 任何指向音频文件的直接链接
- ❌ YouTube、SoundCloud、Spotify 及其他音乐页面(参见 自托管模式)
唱片名称可以是任意内容,包括空格(需加引号)、重音符号、日文或表情符号 🎶。
创建一张与已有名称相同的唱片会替换掉原唱片,并且玩家手中已持有的该唱片也会播放新的歌曲。
已将文件保存在本地? 将其放入 plugins/URLCustomDiscs/import/ 目录中,并使用文件名代替链接(仅限管理员):
/customdisc create mono "Boss music" boss.mp3
无需唱片机即可播放歌曲
这些歌曲也适用于原版的 /playsound 和 /stopsound 命令,可用于命令方块、地图、活动场景等。每张唱片都有一个名为 urlcustomdiscs:slot_<number> 的声音;使用 /customdisc info "<name>" 可以查看其槽位编号。
/playsound urlcustomdiscs:slot_3 record @a ~ ~ ~ 1 1
/stopsound @a record urlcustomdiscs:slot_3
当你更换唱片中的歌曲时,它会保留原有的槽位。如果一张唱片被删除,其槽位可能会被分配给新的唱片。
指令
| 指令 |
功能说明 |
/customdisc help |
显示你可以使用的指令列表 |
/customdisc create <mono|stereo> "<name>" <link or file> |
创建一个唱片 |
/customdisc list |
列出所有唱片:点击其中一个即可获取它 |
/customdisc give "<name>" [player] |
给予某玩家一个唱片 |
/customdisc info ["<name>"] |
显示你手中唱片的详细信息,或指定名称的唱片信息 |
/customdisc rename "<name>" <new name> |
重命名一个唱片 |
/customdisc delete "<name>" |
删除一个唱片 |
/customdisc premium |
查看你的使用限制和 Premium 状态 |
/customdisc reload |
重新加载配置文件和消息内容 |
默认情况下,每位玩家都可以从链接创建唱片并使用 list 和 info 指令。其他操作仅限管理员(operators)。想修改这些权限?请参阅权限。
Bedrock 玩家
拥有 Geyser 吗?Bedrock 玩家会自动获得专属资源包并听到相同的唱片。当添加新唱片时,系统会提示他们快速重新连接以加载该唱片。
Geyser 运行在代理服务器(Velocity、BungeeCord)或独立模式上
在 config.yml 中,将 bedrock.enabled 设置为 on,并将 bedrock.export-path 指向一个文件夹。每当唱片发生变化时,插件会向该文件夹复制两个文件:
- Bedrock 资源包(
.mcpack):将其放入对应 Geyser 的 packs 文件夹中,然后重启 Geyser;
- 物品映射文件(
.json):一次性放入对应 Geyser 的 custom_mappings 文件夹中。
已知限制:在 Bedrock 端,同一张唱片同时在两个唱片机中播放时,只能听到最后一个发出的声音。
免费与高级版
URLCustomDiscs API 是免费的。我自行托管该服务,因此为了保持速度和让所有人负担得起,它有一些使用限制。需要更多功能?高级版可为你的服务器解除这些限制,并帮助维持项目的持续运营。
|
免费 |
高级 |
| 唱片数量 |
10 |
50 |
| 歌曲时长 |
5 分钟 |
10 分钟 |
| 音频文件大小 |
12 MB |
25 MB |
| 整合包大小 |
80 MB |
200 MB |
| 等待队列 |
普通 |
优先 |
获取方法:
- 在 Ko-fi 加入 Premium 会员。
- 在你的服务器中输入
/customdisc premium link your@email.com,其中 your@email.com 替换为你的 Ko-fi 账户邮箱。
- 完成!此时
/customdisc premium 将显示 Premium until…(高级会员有效期至……)并自动续期。
如果我停止使用或转移到其他服务器怎么办?
- 如果你停止使用: 你的唱片会保留。你仍然可以播放、重命名和删除它们,但添加数量不能超过免费用户的限制。
- 新服务器: 在新服务器上输入
/customdisc premium 查看其代码,然后在旧服务器上输入 /customdisc premium move <code>。
- 一个会员仅限 一台服务器。高级会员不允许商业用途(参见 许可证)。
自托管模式(高级)
更喜欢自己掌控一切?在 config.yml 中设置 mode: self-hosted 并重启服务器。随后你的服务器将自行转换歌曲并托管资源包:
- ✅ 支持 YouTube、SoundCloud 以及 yt-dlp 支持的所有网站
- ✅ 无限制(除 Minecraft 对资源包本身的 250 MB 限制外)
- ✅ 为你下载并自动更新 FFmpeg、yt-dlp 和 Deno(支持 Windows 和 Linux)
警告:
自托管模式在大多数现成的 Minecraft 主机上无法运行(即通过面板租赁的服务器,如 Shockbyte、Apex、BisectHosting 等)。它需要这些主机通常不允许的功能:
- 额外的开放端口。 玩家从你的服务器下载唱片资源包,默认端口为
8085。大多数主机只开放 Minecraft 端口,导致玩家无法获取资源包。有些主机提供额外端口的付费选项。
- 运行程序。 转换过程需要使用 FFmpeg 和 yt-dlp,插件会下载并运行这些程序。许多主机禁止从服务器文件夹运行程序。
- YouTube 访问权限。 YouTube 经常屏蔽主机的 IP 地址(提示“登录以确认你不是机器人”),因此即使其他功能正常,YouTube 链接也可能失效。
自托管模式专为 VPS、专用服务器或家用电脑 设计,在这些环境中你可以控制端口和程序。在普通的 Minecraft 主机上,请保持默认的 API 模式:它不需要上述任何配置。
在自托管模式下玩家如何获取资源包
在 config.yml 中设置 resource-pack.hosting:
| 值 |
玩家获取资源包的方式 |
http-server (默认) |
插件在端口 8085 提供服务:打开该端口,或在代理后设置 public-url |
php-upload |
通过 extras/upload.php 上传到你的网站 |
copy |
复制到由你的 Web 服务器提供的文件夹 (path + public-url) |
none |
不发送:将其合并到你自己的资源包中 (export-path 将其复制到你想要的位置) |
在 macOS 上,需自行安装 FFmpeg(brew install ffmpeg)。也可以将任何工具设置为命令或完整路径,而不是 auto。使用 /customdisc tools check 和 /customdisc tools update 可查看和更新这些工具。
配置
所有配置均在 plugins/URLCustomDiscs/config.yml 中,每个选项都有注释说明。大多数服务器无需修改此文件。人们最常更改的选项如下:
| 选项 |
默认值 |
作用 |
mode |
api |
api 或 self-hosted(需要重启) |
creation.give-to-creator |
true |
将新唱片给予创建它的玩家 |
resource-pack.required |
false |
踢出拒绝资源包的 Java 版玩家(基岩版:由 Geyser 决定) |
ownership.enabled |
false |
玩家只能替换、重命名或删除自己的唱片 |
bedrock.enabled |
auto |
auto、on 或 off |
所有消息均可在 messages.yml 中更改。当你更新插件时,你的自定义更改会被保留。
权限
| 权限 |
允许操作 |
默认赋予 |
urlcustomdiscs.use |
help 和 version |
所有人 |
urlcustomdiscs.create.url |
从链接创建唱片 |
所有人 |
urlcustomdiscs.list |
list |
所有人 |
urlcustomdiscs.info |
info |
所有人 |
urlcustomdiscs.create.file |
从 import/ 中的文件创建唱片 |
op |
urlcustomdiscs.give |
give |
op |
urlcustomdiscs.rename |
rename |
op |
urlcustomdiscs.delete |
delete,以及使用 create 替换唱片 |
op |
urlcustomdiscs.overwrite.others |
配合 ownership,更改其他玩家的唱片 |
op |
urlcustomdiscs.premium |
premium |
op |
urlcustomdiscs.tools |
tools(自托管模式) |
op |
urlcustomdiscs.reload |
reload |
op |
urlcustomdiscs.admin |
所有操作 |
op |
常见问题
玩家听不到任何声音
他们可能拒绝了唱片资源包。他们需要接受它:重新加入服务器,或在服务器列表中选中该服务器,点击 编辑 并将 服务器资源包 设置为 启用。
“API 模式仅接受直接链接”
该链接指向的是网页,而非音频文件。请使用 Discord、Google Drive 或 Dropbox 链接,或任何以 .mp3、.ogg 等结尾的链接。对于 YouTube,请参阅 自托管模式。
基岩版玩家听不到声音
在添加新唱片后,他们必须重新连接:表单会自动执行此操作。如果在代理上使用 Geyser,请重启该 Geyser。
玩家未获取到资源包(自托管模式)
使用 http-server 时,端口 8085 必须对互联网开放。设置 debug: true 可在控制台中查看资源包地址。在普通的 Minecraft 主机上,请阅读 自托管模式 中的警告部分。
资源包超过 250 MB(自托管模式)
Minecraft 拒绝接收超过 250 MB 的资源包。删除一些唱片,或从较短的歌曲重新创建它们。立体声唱片占用的空间几乎是单声道同一首歌的两倍。
仍遇到麻烦?请在 Discord 提问,我会在那里帮助你。
支持该项目
URLCustomDiscs 是免费的,其 API 运行在我每月付费维护的服务器上。如果你喜欢这个插件,在 Ko-fi 上成为高级会员会有很大帮助 ❤️。你也可以在 GitHub 上点个星 ⭐,并将这个插件分享给你的朋友!
有问题、想法或发现 bug?加入 Discord 服务器 或提交一个
Issue。
第三方工具
URLCustomDiscs 依赖以下开源工具。它们不包含在插件内:需从其官方发布页下载。
- API 模式: 你的服务器无需安装任何内容。API 服务器使用 FFmpeg 转换你的歌曲。
- 自建模式: 插件会下载这些工具,保持其更新并在你的服务器上运行。
许可证
URLCustomDiscs 由 TheoDgb 制作。它对非商业服务器免费
(PolyForm Noncommercial 1.0.0)。
- 如果你的服务器向玩家售卖任何内容(如排名、增益、物品、外观、付费访问权限等)?这属于商业用途:请先通过 Discord 联系我。
- 如果你的服务器仅接受捐赠,且不提供任何回报? 这是可以的,无需询问。
- 高级会员不包含商业用途许可。
免责声明
请仅为你有权使用的音频创建唱片。使用 API 即表示你接受其条款。
API 会存储你服务器的唱片和资源包,以及对于高级会员而言,你的 Ko-fi 账户的电子邮件地址。它不会存储任何关于你玩家的信息。
About
URLCustomDiscs lets you turn any song into a real Minecraft music disc with one command.
Paste a link to an audio file, give the disc a name, and a few seconds later it is in your inventory.
Every player online receives the new disc right away: no resource pack to edit, no restart, no file to
upload. Everything happens in game.
Your custom discs behave exactly like vanilla ones: they play in jukeboxes, go through hoppers, power comparators,
and can be stored in chests or given to friends.
How it works
1. Type /customdisc create with an audio type, a name and a link |
3. Every player online gets the updated disc pack |
| 2. The song is downloaded, converted and added to the pack |
4. The disc is in your inventory: put it in a jukebox! |
 |
 |
Get started in 1 minute
-
Download URLCustomDiscs.jar from Modrinth or the
Releases page.
-
Put it in your server's plugins folder and start the server.
-
In game, create your first disc:
/customdisc create mono "My song" https://example.com/song.mp3
That's it! There is nothing to configure: the free URLCustomDiscs API converts your songs and hosts the
disc pack for you. When players join, Minecraft asks them to download the pack; they just click Yes.
NOTE:
You need Paper 26.1 or newer with Java 25. For Minecraft 1.21 to 1.21.11, use
URLCustomDiscs v2, in self-hosted mode only:
the v2 API has been shut down.
Creating discs
/customdisc create <mono|stereo> "<disc name>" <link>
mono or stereo?
mono: the sound comes from the jukebox and fades as you walk away, like vanilla discs.
stereo: keeps the original stereo sound, heard the same everywhere around the jukebox.
Which links work? A link to the audio file itself (.mp3, .ogg, .wav…):
- ✅ a file sent on Discord (right-click it, Copy Link)
- ✅ a Google Drive or Dropbox share link
- ✅ any direct link to an audio file
- ❌ YouTube, SoundCloud, Spotify and other music pages (see Self-hosted mode)
Disc names can be anything, with spaces (between quotes), accents, Japanese or emoji 🎶.
Creating a disc with a name that already exists replaces it, and the copies players already have play the new
song.
Have the file on your computer? Put it in plugins/URLCustomDiscs/import/ and use its file name instead of
a link (admins only):
/customdisc create mono "Boss music" boss.mp3
Play songs without a jukebox
The songs also work with the vanilla /playsound and /stopsound commands, for command blocks, maps,
events… Each disc has a sound named urlcustomdiscs:slot_<number>; /customdisc info "<name>" shows its
slot number.
/playsound urlcustomdiscs:slot_3 record @a ~ ~ ~ 1 1
/stopsound @a record urlcustomdiscs:slot_3
A disc keeps its slot when you replace its song. After a disc is deleted, its slot can go to a new disc.
Commands
| Command |
What it does |
/customdisc help |
Shows the commands you can use |
/customdisc create <mono|stereo> "<name>" <link or file> |
Creates a disc |
/customdisc list |
Lists every disc: click one to get it |
/customdisc give "<name>" [player] |
Gives a disc |
/customdisc info ["<name>"] |
Shows details of the disc you hold, or of a named one |
/customdisc rename "<name>" <new name> |
Renames a disc |
/customdisc delete "<name>" |
Deletes a disc |
/customdisc premium |
Your limits and Premium status |
/customdisc reload |
Reloads the config and messages |
By default, every player can create discs from links and use list and info. Everything else is for
operators. Want to change that? See Permissions.
Bedrock players
Got Geyser? Bedrock players get their own pack automatically and hear the same discs.
When a new disc is added, they are offered a quick reconnection to load it.
Geyser on a proxy (Velocity, BungeeCord) or standalone
In config.yml, set bedrock.enabled: on and bedrock.export-path to a folder. Each time the discs change,
the plugin copies two files there:
- the Bedrock pack (
.mcpack): put it in the packs folder of that Geyser, then restart Geyser;
- the item mapping (
.json): put it once in the custom_mappings folder of that Geyser.
Known limit: on Bedrock, the same disc playing in two jukeboxes at once is only heard from the last one.
Free and Premium
The URLCustomDiscs API is free. I host it myself, so it has a few limits to stay fast and affordable for
everyone. Need more? Premium raises them for your server and helps keep the project alive.
|
Free |
Premium |
| Discs |
10 |
50 |
| Song length |
5 min |
10 min |
| Audio file |
12 MB |
25 MB |
| Pack size |
80 MB |
200 MB |
| Waiting line |
Normal |
Priority |
How to get it:
- Join the Premium membership on Ko-fi.
- On your server, type
/customdisc premium link your@email.com with the e-mail of your Ko-fi account.
- Done!
/customdisc premium now shows Premium until… and renews by itself.
What if I stop, or move to another server?
- If you stop: your discs stay. You can still play, rename and delete them, but not add more than the free
limit.
- New server: type
/customdisc premium on the new server to see its code, then
/customdisc premium move <code> on the old one.
- One membership covers one server. Premium does not allow commercial use (see License).
Self-hosted mode (advanced)
Prefer to run everything yourself? Set mode: self-hosted in config.yml and restart. Your server then
converts the songs and hosts the pack itself:
- ✅ YouTube, SoundCloud and every site supported by yt-dlp
- ✅ No limits (except Minecraft's own 250 MB limit for the pack)
- ✅ FFmpeg, yt-dlp and Deno are downloaded and kept up to date for you (Windows and Linux)
WARNING:
Self-hosted mode does not work on most ready-made Minecraft hosting (the servers you rent from a panel,
like Shockbyte, Apex, BisectHosting…). It needs things these hosts usually don't allow:
- An extra open port. Players download the disc pack from your server, on port
8085 by default.
Most hosts only open the Minecraft port, so players can't get the pack. Some sell extra ports as an
option.
- Running programs. The conversion uses FFmpeg and yt-dlp, which the plugin downloads and runs. Many
hosts block running programs from the server folder.
- YouTube access. YouTube often blocks the addresses of hosting companies ("Sign in to confirm you're
not a bot"), so YouTube links may fail even when everything else works.
Self-hosted mode is made for a VPS, a dedicated server or a computer at home, where you control the
ports and the programs. On a regular Minecraft host, keep the default API mode: it needs none of this.
How players get the pack in self-hosted mode
Set resource-pack.hosting in config.yml:
| Value |
How players get the pack |
http-server (default) |
The plugin serves it on port 8085: open that port, or set public-url behind a proxy |
php-upload |
Uploaded to your website with extras/upload.php |
copy |
Copied to a folder served by your web server (path + public-url) |
none |
Not sent: merge it into your own pack (export-path copies it where you want) |
On macOS, install FFmpeg yourself (brew install ffmpeg). Any tool can also be set to a command or a full path
instead of auto. /customdisc tools check and /customdisc tools update show and update the tools.
Configuration
Everything is in plugins/URLCustomDiscs/config.yml, with comments explaining each option. Most servers never
need to touch it. The ones people change most:
| Option |
Default |
What it does |
mode |
api |
api or self-hosted (restart needed) |
creation.give-to-creator |
true |
Give the new disc to the player who created it |
resource-pack.required |
false |
Kick Java players who refuse the pack (Bedrock: Geyser decides) |
ownership.enabled |
false |
Players can only replace, rename or delete their own discs |
bedrock.enabled |
auto |
auto, on or off |
All messages can be changed in messages.yml. When you update the plugin, your changes are kept.
Permissions
| Permission |
Allows |
Default |
urlcustomdiscs.use |
help and version |
everyone |
urlcustomdiscs.create.url |
Creating discs from links |
everyone |
urlcustomdiscs.list |
list |
everyone |
urlcustomdiscs.info |
info |
everyone |
urlcustomdiscs.create.file |
Creating discs from files in import/ |
op |
urlcustomdiscs.give |
give |
op |
urlcustomdiscs.rename |
rename |
op |
urlcustomdiscs.delete |
delete, and replacing a disc with create |
op |
urlcustomdiscs.overwrite.others |
With ownership, changing other players' discs |
op |
urlcustomdiscs.premium |
premium |
op |
urlcustomdiscs.tools |
tools (self-hosted) |
op |
urlcustomdiscs.reload |
reload |
op |
urlcustomdiscs.admin |
Everything |
op |
Common problems
A player hears nothing
They probably refused the disc pack. They need to accept it: rejoin, or in the server list, select the server,
click Edit and set Server Resource Packs to Enabled.
"API mode only accepts direct links"
The link points to a web page, not to the audio file. Use a Discord, Google Drive or Dropbox link, or any link
ending in .mp3, .ogg… For YouTube, see Self-hosted mode.
Bedrock players hear nothing
They must reconnect after a new disc is added: the form does it for them. With Geyser on a proxy, restart that
Geyser.
Players don't get the pack (self-hosted)
With http-server, port 8085 must be open to the internet. Set debug: true to see the pack address in the
console. On a regular Minecraft host, read the warning in Self-hosted mode.
The pack is over 250 MB (self-hosted)
Minecraft refuses packs over 250 MB. Delete some discs or recreate them from shorter songs. A stereo disc takes
almost twice the space of the same song in mono.
Still stuck? Ask on Discord, I'll help you there.
Support the project
URLCustomDiscs is free, and the API runs on a server I pay for every month. If you like the plugin, a
Premium membership on Ko-fi helps a lot ❤️. You can also leave a star on GitHub ⭐
and share the plugin with your friends!
Questions, ideas, bugs? Join the Discord server or open an
issue.
Third-party tools
URLCustomDiscs relies on these open-source tools. They are not included in the plugin: they are downloaded
from their official releases.
- API mode: nothing is installed on your server. The API server uses FFmpeg to convert your songs.
- Self-hosted mode: the plugin downloads the tools, keeps them up to date and runs them on your server.
License
URLCustomDiscs is made by TheoDgb. It is free for non-commercial servers
(PolyForm Noncommercial 1.0.0).
- Your server sells anything to players (ranks, perks, items, cosmetics, paid access…)? That is commercial
use: ask me first on Discord.
- Your server only accepts donations, with nothing given in return? That's fine, no need to ask.
- Premium does not include permission for commercial use.
Disclaimer
Only create discs from audio you have the right to use. By using the API, you accept its terms.
The API stores your server's discs and packs and, for Premium, the e-mail of your Ko-fi account. It stores
nothing about your players.
评论 0
登录后参与评分
还没有评论,来抢沙发吧