Phonon

在 Minecraft 中一起聆听音乐。通过扬声器和收音机播放你的音乐,附近的所有玩家都能听到同一首歌的同一时刻。

你能做什么
- 添加任意歌曲。 在游戏中按标题搜索、粘贴链接,或将文件拖入世界中。
- 放置扬声器。 音乐从它所在的位置传出。走过时会移动声音位置,墙壁和水会使其变得沉闷。
- 携带收音机。 它在你的物品栏、鼠标指针上以及地面上持续播放。
- 运行电台。 一个队列,所有扬声器都调至该频道,所有玩家同步收听,即使跨维度也是如此。
- 构建播放列表。 支持队列、随机播放和循环,并为整个服务器保存播放列表。
- 进行连线控制。 红石可以控制扬声器,比较器可读取其进度,鹦鹉还会随之起舞。
安装
在客户端和服务器端都安装 Phonon,使用 NeoForge 或 Fabric 以及 Fabric API。从 Modrinth 或 GitHub 下载。Phonon 支持从 1.21.1 到 26.3 的所有 Minecraft 版本,适用于两种加载器。选择适合你加载器的文件,其支持的 Minecraft 版本需包含你的版本;例如,名为 1.21.3 的文件也可在 1.21.2 上运行。
在 Fabric 上,设置位于 config/phonon-server.json 和 config/phonon-client.json,并且 Mod Menu 会为客户端设置添加一个按钮。
Minecraft 26.x 需要 Java 25,而 1.21.x 需要 Java 21。
开始使用
- 在创造模式菜单中的“功能方块”或“红石方块”分类下找到该物品,或者当你拥有唱片机后,可以合成它。
- 右键点击它,并在搜索框中输入歌曲标题或粘贴链接。你也可以运行命令
/phonon add <链接或标题>。
- 双击歌曲即可播放。
音量遵循游戏唱片机/音符盒滑块设置。
要添加本地文件,请将它们放入世界文件夹中的 phonon_music 目录内,然后运行 /phonon reload。支持 MP3、WAV、FLAC、M4A、AAC、Opus、WMA 和 OGG 格式,且原始文件会保留在文件夹中。
音频工具
添加音频的操作是在运行服务器的机器上进行的,单人游戏中即为你自己的电脑。直接指向 OGG 文件的链接无需其他依赖。其他链接和非 OGG 文件需要 yt-dlp、FFmpeg 和 Deno。
如果缺少这些工具,Phonon 会在首次需要时于聊天栏中提示安装。操作员点击接受后,经过校验和验证的固定版本构建文件将进入游戏文件夹中的 phonon/tools 目录。当 Phonon 尚未安装其自有工具时,会优先使用已存在于系统 PATH 环境变量中的工具。服务器管理员可通过设置 allowToolInstall 来禁用此功能。
在 Windows 上手动安装时,请运行以下命令,然后重启 Minecraft 启动器。winget 还会同时安装 FFmpeg 和 Deno。
winget install --source winget --id yt-dlp.yt-dlp
当网站屏蔽服务器时
许多网站不信任来自云主机的地址,而下载任务由服务器执行,因此链接和搜索都会失败。请先运行 /phonon tools update,因为旧版本的 yt-dlp 会以类似方式失效。之后,服务器配置中将提供 downloadProxy(下载代理)和 cookiesFile(Cookie 文件)。yt-dlp 警告指出,以这种方式使用的账号可能会被封禁,因此请使用备用账号并严格保密该文件。
扬声器界面

- 音轨:音乐库。双击可播放,或将鼠标悬停在歌曲上以选择立即播放、下一首播放或添加到播放列表。输入文字可过滤列表;若你拥有添加歌曲的权限,下方绿色行会在 YouTube、SoundCloud 或 Bilibili 上查找你输入的内容,或添加粘贴的链接。
- 队列:即将播放的内容。双击可跳转至该曲目,或移除某一行。
- 播放列表:任何人均可创建的保存列表,并标注创作者。打开后可通过输入文字添加歌曲,拖拽以重新排序,并重命名。
- 电台:由一人运营、供所有听众收听的电台。输入新名称会将当前播放内容共享为一个电台,输入已有名称则切换至该电台。离开操作会使你的个人音乐回到原来的位置。
界面会标明按钮的作用对象,并对不可更改的内容显示为灰色。
收音机
使用扬声器合成一台收音机,或在创造模式菜单的音乐唱片之后找到它。使用它以打开控制面板,或潜行并使用它以开启或关闭设备。它的电台调谐方式与扬声器相同。将其放入箱子中,或其支架处于离线状态时,其自身的音乐会暂停并从同一位置继续;电台则会不受影响地继续运行。
红石
面向扬声器时,信号触发侧边动作如下:
| 侧面 |
动作 |
| 左侧 |
上一首音轨 |
| 右侧 |
下一首音轨 |
| 背面 |
停止 |
| 正面、顶部、底部 |
播放或暂停 |
比较器可读取扬声器在当前音轨中的进度:开始时为 1,结束时为 15,停止时为 0。幽匿感测体可侦听其开始与停止,附近的鹦鹉和悦灵会随之跳舞。
命令
所有命令都需要操作员权限。
| 指令 |
说明 |
/phonon add [name] <link> |
下载并注册音频。如果不提供名称,则使用视频标题 |
/phonon add <title> |
添加与标题相关的第一个 YouTube 搜索结果 |
/phonon list |
查看已注册的音频 |
/phonon remove <name> |
移除音频 |
/phonon reload |
重新加载配置并从音乐文件夹导入新文件 |
/phonon config |
显示服务器设置,并提供按钮以开启或关闭各项设置 |
/phonon config <setting> <value> |
更改服务器设置并保存 |
/phonon config <setting> reset |
将服务器设置恢复为默认值 |
/phonon tools |
显示音频工具版本,以及上次成功工作或被封禁的网站 |
/phonon tools install |
在游戏文件夹中安装 yt-dlp、FFmpeg 和 Deno |
/phonon tools update |
更新 Phonon 的 yt-dlp;如果系统中仅有旧版,则先进行安装 |
/phonon tools help |
当网站阻止服务器时该如何处理 |
服务器设置
这些设置对所有玩家生效。操作员可以在游戏中通过 /phonon config 修改它们,该命令还涵盖下载、代理和传输设置,并隐藏代理密码。音频工具设置(包括选择代理、cookies 文件以及是否允许 yt-dlp 自动更新)需要所有者权限(等级 4)。设置保存在 NeoForge 的 config/phonon-server.toml 或 Fabric 的 config/phonon-server.json 中。
| 设置项 |
功能 |
ownerOnlySpeakers |
限制扬声器仅可由放置者及操作员使用 |
anyoneCanAddTracks |
允许所有玩家添加歌曲。玩家只能删除自己添加的内容 |
anyoneCanControlStations |
允许任何正在收听频道的玩家更改播放内容。否则只有创建者和操作员可以控制 |
muffleBehindWalls |
玩家与扬声器之间的墙壁会削弱声音效果。关闭此选项可像唱片机一样无阻碍地听到扬声器声音 |
hearingDistance |
玩家能听到扬声器的距离(以方块为单位),范围为 16 到 128(默认为 64) |
audioQuality |
新添加音频的 Vorbis 质量,范围从 0(最小)到 10(最佳) |
致谢
Phonon 深受 WebDisplays 和 Sound Physics Remastered 的启发。
许可证
GPL-3.0。非官方 Minecraft 产品。未经 Mojang 或 Microsoft 批准或认可。
Phonon

Listen together in Minecraft. Play your music through speakers and boomboxes, and everyone nearby hears the same moment of the same song.

What you can do
- Add any song. Find it by title in the game, paste a link, or drop files into the world.
- Place a speaker. The music comes from where it stands. Walk past and it moves, and walls and water muffle it.
- Carry a boombox. It keeps playing in your inventory, on your cursor and on the ground.
- Run a station. One queue, every speaker tuned to it, every player in step, even across dimensions.
- Build playlists. Queue, shuffle and repeat, with playlists saved for the whole server.
- Wire it up. Redstone controls a speaker, comparators read its progress, and parrots dance to it.
Install
Install Phonon on both the client and the server, with either NeoForge or
Fabric and Fabric API. Download from
Modrinth or GitHub. Phonon
supports every Minecraft release from 1.21.1 to 26.3 on both loaders. Choose the file for your loader whose
Minecraft versions include yours; a file named for 1.21.3, for example, also runs on 1.21.2.
On Fabric, the settings are in config/phonon-server.json and config/phonon-client.json, and
Mod Menu adds a button for the client settings.
Minecraft 26.x needs Java 25, and 1.21.x needs Java 21.
Get started
- Find the Speaker in the creative menu under Functional Blocks or Redstone Blocks, or craft it once you have a jukebox.
- Right-click it and type a song's title or paste a link into the search box. You can also run
/phonon add <link or title>.
- Double-click the song to play it.
Volume follows the game's Jukebox/Note Blocks slider.
To add local files, put them in phonon_music inside the world folder and run /phonon reload. MP3, WAV, FLAC, M4A,
AAC, Opus, WMA and OGG are accepted, and the originals stay in the folder.
Audio tools
Adding audio happens on the machine that runs the server, which in singleplayer is your own PC. Direct links to OGG
files need nothing else. Other links and non-OGG files need yt-dlp, FFmpeg and Deno.
If they are missing, Phonon offers to install them in chat the first time they are needed. An operator clicks to
accept, and pinned builds with verified checksums go into phonon/tools in the game folder. Tools already on PATH
are used when Phonon hasn't installed its own. Server owners can turn this off with allowToolInstall.
To install them yourself on Windows, run this, then restart the Minecraft Launcher. winget installs FFmpeg and Deno too.
winget install --source winget --id yt-dlp.yt-dlp
When a site blocks the server
Sites often distrust addresses from cloud hosts, and the server does the downloading, so links fail as well as searches.
Run /phonon tools update first, since an old yt-dlp fails in similar ways. After that, the server config has
downloadProxy and cookiesFile. yt-dlp warns that an account used this way can be banned, so use a spare one and keep
the file private.
The speaker screen

- Tracks: the library. Double-click to play, or hover a song for play now, play next and add to a playlist. Typing
filters the list, and if you may add songs, the green row below finds what you typed on YouTube, SoundCloud or
Bilibili, or adds a pasted link.
- Queue: what's up next. Double-click to jump, or remove a row.
- Playlists: saved lists anyone can make, credited to their creator. Open one to add songs by typing, drag to
reorder, and rename it.
- Stations: music one person runs, for everyone who listens in. Typing a new name shares what's playing as a
station, and typing an existing name tunes to it. Leave brings your own music back where it was.
The screen says who a button affects, and greys out what you can't change.
Boombox
Craft one from a Speaker, or find it after the music discs in the creative menu. Use it to open its controls, or sneak
and use it to switch it on or off. It tunes to stations like a speaker does. Put away in a chest, or with its holder
offline, its own music waits and carries on from the same point; a station keeps going without it.
Redstone
A signal turning on acts by side, as seen facing the speaker:
| Side |
Action |
| Left |
Previous track |
| Right |
Next track |
| Back |
Stop |
| Front, top, bottom |
Play or pause |
A comparator reads how far through the track the speaker is: 1 at the start up to 15 at the end, and 0 when stopped.
Sculk sensors hear it start and stop, and nearby parrots and allays dance.
Commands
All commands need operator permission.
| Command |
Description |
/phonon add [name] <link> |
Download and register audio. Without a name, it uses the video's title |
/phonon add <title> |
Add the first YouTube result for the title |
/phonon list |
View registered audio |
/phonon remove <name> |
Remove audio |
/phonon reload |
Reload configuration and import new files from the music folder |
/phonon config |
Show the server settings, with buttons to switch them on or off |
/phonon config <setting> <value> |
Change a server setting and save it |
/phonon config <setting> reset |
Put a server setting back to its default |
/phonon tools |
Show audio tool versions, and which sites last worked or were blocked |
/phonon tools install |
Install yt-dlp, FFmpeg and Deno into the game folder |
/phonon tools update |
Update Phonon's yt-dlp, installing it first if it's only on the system |
/phonon tools help |
What to do when a site blocks the server |
Server settings
They apply to every player. Operators can change them in game with /phonon config, which also covers download,
proxy and transfer settings, and hides a proxy's password. The audio tool settings, which choose the proxy, the
cookies file and whether yt-dlp updates itself, need owner permission (level 4). Settings are saved in
config/phonon-server.toml on NeoForge or config/phonon-server.json on Fabric.
| Setting |
What it does |
ownerOnlySpeakers |
Limits a speaker to whoever placed it and operators |
anyoneCanAddTracks |
Lets every player add songs. Players can delete only what they added |
anyoneCanControlStations |
Lets anyone tuned to a station change what it plays. Otherwise only its creator and operators can |
muffleBehindWalls |
Walls between a player and a speaker muffle it. Turn off to hear speakers unobstructed, like a jukebox |
hearingDistance |
How far away, in blocks, players hear a speaker, from 16 to 128 (64 by default) |
audioQuality |
Vorbis quality of newly added audio, from 0 (smallest) to 10 (best) |
Credits
Phonon is greatly inspired by WebDisplays and
Sound Physics Remastered.
License
GPL-3.0. Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.
评论 0
登录后参与评分
还没有评论,来抢沙发吧