← Назад к ресурсам

网络音乐机:不是显示来源?(netmusic:display)

The module supports using a network music player as the display source for the Mechanical Power display linker, and supports displaying song titles, artists, playback status, and bilingual lyrics on the flip-card display.

Modrinth

Описание

# 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 1. Make sure the dependencies above are installed 2. Drop this mod's jar into your `mods` folder 3. **Must be installed on both server and client** ## Usage 1. Place a **Display Board** 2. Right-click with a **Display Link** and place it on the **Net Music CD Player** 3. Select the data source you want (song name / play status / lyrics, etc.) 4. The info shows up on the Display Board ## Building from Source ```bash 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](https://github.com/zhengyanmian/NetMusicDisplay/blob/main/LICENSE) — free to use, modify, and distribute, just keep the copyright notice. ## Credits - [Create](https://github.com/Creators-of-Create/Create) — by simibubi et al. - [Net Music](https://modrinth.com/mod/net-music) — by TartaricAcid This mod does not contain or distribute any code or assets from the above mods. 由于某些原因作者停止对此模组开发以及维护,如有需要,模组:翻牌万象 FlapDisplayPlus仍具有以上功能并更加完善