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

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

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.5
本资源为搬运资源,原资源地址: https://modrinth.com/mod/netmusic-display
资源信息

Minecraft 版本: 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: neoforge

资源介绍

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

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 systemDisplaySource 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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Nonsense

价格:0 墨喵币
下载量:0

查看详情
Advanced Login

价格:0 墨喵币
下载量:0

查看详情
KitsX Custom

价格:0 墨喵币
下载量:0

查看详情
OfflineEncryptor

价格:0 墨喵币
下载量:0

查看详情