
AllMusic_Lyrics
Addon mod for AllMusic Client3 by color_yr.Automatically fetches synced lyrics from NetEase Cloud Music / LRCLIB and displays them on screen when songs play.
Screenshots



About this Mod
Addon mod for AllMusic Client3 by color_yr(https://github.com/Coloryr/AllMusic) .
Automatically fetches synced lyrics from NetEase Cloud Music / LRCLIB and displays them on screen when songs play.
The current lyrics fetching has the following log chains:
Normal Path (with Song ID)
[AllMusic3]正在解析歌曲[123456] ← Caught by ClientReceiveMessageEvents.GAME
↓ LyricsDisplay.onSongParsing()
↓ LyricsFetcher.fetchById(123456) → Direct LRC fetch
↓ Log: "后台获取歌词 ID=123456"
↓ Log: "歌词已缓存: 35 行 (等待播放)"
[AllMusic3]正在播放:歌名 | 歌手 ← Caught by ClientReceiveMessageEvents.GAME
↓ LyricsDisplay.onNowPlaying()
↓ pendingLines has cache → use directly
↓ Log: "正在播放: 歌名 | 歌手"
↓ Log: "歌词显示已激活: 歌名 | 歌手"
Fallback Path (No Cache, Search by Name)
If the "parsing song" message never appeared, and "now playing" arrives directly:
[AllMusic3]正在播放:歌名 | 歌手
↓ LyricsDisplay.onNowPlaying()
↓ pendingLines == null → fallback to search
↓ Log: "无缓存,用歌名搜索..."
↓ LyricsFetcher.fetch(message)
├─ Match NOW_PLAYING regex → extract "歌名 | 歌手"
├─ Split: name="歌名", artist="歌手"
├─ neteaseSearch("歌名", "歌手") → search API
├─ neteaseSearch("歌名", "") → name only (fallback)
└─ lrclib("歌名", "歌手") → LRCLIB (final fallback)
Third Path (packDo Fallback)
AllMusicCore.packDo(INFO, "歌名 | 歌手") ← Mixin TAIL interception
↓ LyricsDisplay.onNowPlaying(data)
↓ Same search flow as above
Key Regex (LyricsFetcher)
| Regex | Matches | Action |
|---|---|---|
正在解析歌曲[::]?\s*(\d+) |
正在解析歌曲[123456] |
Direct ID fetch |
music\.163\.com.*[/#]song\?id=(\d+) |
NetEase URL |
Direct ID fetch |
正在播放[::]\s*(.+?)(?:\s+by:.*)?$ |
正在播放:Song Name |
Search by name |
Search log keywords: |
搜索歌词:, 网易云搜索, LRCLIB, ✘ 未找到歌词. |
Currently, this module does not generate English log files.
中文用户:
AllMusic Client 歌词附属模组。
自动获取网易云/LRCLIB同步歌词并显示在HUD
当前歌词获取有以下日志链路:
正常路径(有歌曲ID)
[AllMusic3]正在解析歌曲[123456] ← ClientReceiveMessageEvents.GAME 捕获
↓ LyricsDisplay.onSongParsing()
↓ LyricsFetcher.fetchById(123456) → 直接获取 LRC
↓ 日志: "后台获取歌词 ID=123456"
↓ 日志: "歌词已缓存: 35 行 (等待播放)"
[AllMusic3]正在播放:歌名 | 歌手 ← ClientReceiveMessageEvents.GAME 捕获
↓ LyricsDisplay.onNowPlaying()
↓ pendingLines 有缓存 → 直接使用
↓ 日志: "正在播放: 歌名 | 歌手"
↓ 日志: "歌词显示已激活: 歌名 | 歌手"
后备路径(无缓存,歌名搜索)
如果"正在解析歌曲"消息没出现,直接来了"正在播放":
[AllMusic3]正在播放:歌名 | 歌手
↓ LyricsDisplay.onNowPlaying()
↓ pendingLines == null → 走搜索
↓ 日志: "无缓存,用歌名搜索..."
↓ LyricsFetcher.fetch(message)
├─ 匹配 NOW_PLAYING 正则 → 提取 "歌名 | 歌手"
├─ 拆分: name="歌名", artist="歌手"
├─ neteaseSearch("歌名", "歌手") → 搜索API
├─ neteaseSearch("歌名", "") → 仅歌名(后备)
└─ lrclib("歌名", "歌手") → LRCLIB(最终后备)
第三路径(packDo 后备)
AllMusicCore.packDo(INFO, "歌名 | 歌手") ← Mixin TAIL 拦截
↓ LyricsDisplay.onNowPlaying(data)
↓ 同上搜索流程
关键正则(LyricsFetcher)
| 正则 | 匹配内容 | 动作 |
|---|---|---|
正在解析歌曲[::]?\s*(\d+) |
正在解析歌曲[123456] |
直接ID获取 |
music\.163\.com.*[/#]song\?id=(\d+) |
网易云URL |
直接ID获取 |
正在播放[::]\s*(.+?)(?:\s+by:.*)?$ |
正在播放:歌名 |
歌名搜索 |
搜索的日志关键词: |
搜索歌词:、网易云搜索、LRCLIB、✘ 未找到歌词。 |
Available Versions
How to Install AllMusic_Lyrics on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "AllMusic_Lyrics". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
AllMusic_Lyrics server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is AllMusic_Lyrics compatible with fabric?
AllMusic_Lyrics officially supports fabric for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with AllMusic_Lyrics – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if AllMusic_Lyrics consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install AllMusic_Lyrics with just one click on your server.