Net Music Display
一个 Create 的附加模组,为显示链接(Display Link)添加了 Net Music 显示源,让您能够在显示板、数码管或告示牌上展示歌曲名称、播放状态和歌词。
将显示链接指向 Net Music CD Player,并从 6 种数据源 中进行选择——歌曲名称、播放状态、原始歌词、翻译歌词,或组合的多行视图。歌词由服务器端直接从网易云音乐 API 获取并缓存,因此无需客户端数据支持。
功能特性
| 数据源 |
描述 |
| 歌曲名称 |
当前正在播放的光盘名称 |
| 播放状态 |
播放中 / 已停止 |
| 原始歌词 |
与播放进度同步的当前歌词行 |
| 翻译歌词 |
与播放进度同步的当前翻译歌词行 |
| 全合一(多行) |
播放状态 + 歌曲名称 + 原始歌词 + 翻译歌词 |
| 双歌词(多行) |
原始歌词 + 翻译歌词堆叠显示 |
歌词由服务器端从网易云音乐 API 获取并缓存——无需客户端数据支持。
依赖项
| 模组 |
1.21.1 NeoForge |
1.20.1 Forge |
| Minecraft |
1.21.1 |
1.20.1 |
| Create |
6.0.10+ |
6.0.8+ |
| Net Music |
1.5.1+ |
1.5.1+ |
安装步骤
- 确保已安装上述依赖项
- 将此模组的 jar 文件放入
mods 文件夹
- 必须在服务端和客户端同时安装
使用方法
- 放置一块显示板
- 手持显示链接右键点击放置在Net Music CD Player上
- 选择您想要的数据源(歌曲名称/播放状态/歌词等)
- 信息将显示在显示板上
从源代码构建
git clone https://github.com/zhengyanmian/NetMusicDisplay.git
cd NetMusicDisplay
# 将 Net Music 的 jar 下载到 libs/ 目录
# 下载地址:https://modrinth.com/mod/net-music/versions
# 构建
./gradlew build
# 输出位于 build/libs/
需要 JDK 21 (1.21.1 NeoForge) 或 JDK 17 (1.20.1 Forge)。
分支说明
| 分支 |
MC 版本 |
加载器 |
模组版本 |
main |
1.21.1 |
NeoForge |
1.0.5 |
1.20.1-forge |
1.20.1 |
Forge |
1.1.0 |
技术细节
- Create 的显示链接是一个服务端方块系统——
DisplaySource 数据收集在服务端运行
- Net Music 的歌词原本是一个仅客户端字段,服务端无法直接访问
- 本模组使用
LyricCache 让服务端自行调用网易云音乐歌词 API,异步获取并缓存歌词,然后根据 CD 播放器的播放进度(刻数)计算当前歌词行
- Net Music API 在两个版本(1.5.1)中是相同的;Create 6.0.x 的 DisplaySource API 在 1.20.1 和 1.21.1 之间也是统一的,因此源代码直接共享
许可证
MIT License — 可免费使用、修改和分发,只需保留版权声明即可。
鸣谢
本模组不包含或分发上述模组的任何代码或资源。
由于某些原因作者停止对此模组开发以及维护,如有需要,模组:翻牌万象 FlapDisplayPlus仍具有以上功能并更加完善
Net Music Display
An addon for Create that adds Net Music display sources to the Display Link, letting you show song name, play status, and lyrics on Display Boards / Nixie Tubes / Signs.
Point a Display Link at a Net Music CD Player and pick from 6 data sources — the song name, play status, original lyrics, translated lyrics, or combined multi-line views. Lyrics are fetched and cached server-side directly from the NetEase Cloud Music API, so no client-side data is needed.
Features
| Source |
Description |
| Song Name |
The name of the currently playing disc |
| Play Status |
Playing / Stopped |
| Original Lyrics |
Current lyric line, synced to playback progress |
| Translated Lyrics |
Current translated lyric line, synced to playback progress |
| All-in-One (multi-line) |
Play status + song name + original lyrics + translated lyrics |
| Dual Lyrics (multi-line) |
Original lyrics + translated lyrics stacked |
Lyrics are fetched and cached server-side from the NetEase Cloud Music API — no client-side data required.
Dependencies
| Mod |
1.21.1 NeoForge |
1.20.1 Forge |
| Minecraft |
1.21.1 |
1.20.1 |
| Create |
6.0.10+ |
6.0.8+ |
| Net Music |
1.5.1+ |
1.5.1+ |
Installation
- Make sure the dependencies above are installed
- Drop this mod's jar into your
mods folder
- Must be installed on both server and client
Usage
- Place a Display Board
- Right-click with a Display Link and place it on the Net Music CD Player
- Select the data source you want (song name / play status / lyrics, etc.)
- The info shows up on the Display Board
Building from Source
git clone https://github.com/zhengyanmian/NetMusicDisplay.git
cd NetMusicDisplay
# Download the Net Music jar into the libs/ directory
# From: https://modrinth.com/mod/net-music/versions
# Build
./gradlew build
# Output is in build/libs/
Requires JDK 21 (1.21.1 NeoForge) or JDK 17 (1.20.1 Forge).
Branches
| Branch |
MC Version |
Loader |
Mod Version |
main |
1.21.1 |
NeoForge |
1.0.5 |
1.20.1-forge |
1.20.1 |
Forge |
1.1.0 |
Technical Details
- Create's Display Link is a server-side block system —
DisplaySource data collection runs on the server
- Net Music's lyrics are originally a client-only field that the server can't directly access
- This mod uses
LyricCache to let the server call the NetEase Cloud Music lyrics API itself, fetching and caching lyrics asynchronously, then calculating the current lyric line from the CD player's playback progress (ticks)
- The Net Music API is identical across both versions (1.5.1); Create 6.0.x's DisplaySource API is unified between 1.20.1 and 1.21.1, so the source code is shared directly
License
MIT License — free to use, modify, and distribute, just keep the copyright notice.
Credits
This mod does not contain or distribute any code or assets from the above mods.
由于某些原因作者停止对此模组开发以及维护,如有需要,模组:翻牌万象 FlapDisplayPlus仍具有以上功能并更加完善
评论 0
登录后参与评分
还没有评论,来抢沙发吧