查看中文介绍
Net Music: Better Login
ming-sc/NetMusic-BetterLogin(最初为 Forge 1.20.1 构建)的 Fabric 移植版,为 NetMusic (net-music) 模组提供了更好的登录支持。
支持的版本: Minecraft 26.1.2 (Java 25)、1.21.1 (Java 21+) 和 1.20.1 (Java 17+)。
原版模组的功能
NetMusic-BetterLogin 是 NetMusic 模组的插件,允许你在 Minecraft 内播放网易云音乐。由于基础模组的默认登录方式较为繁琐,Better Login 将其替换为便捷的登录方法,并解锁了全服 VIP 播放功能:
- 二维码登录 — 使用网易云音乐手机应用扫描二维码并在手机上确认。
- 邮箱/账号登录 — 使用邮箱、手机号或用户名+密码登录。
- 短信验证码登录 — 接收手机验证码进行无密码登录。
- 持久化登录 — 会话 Cookie 会保存至配置文件,并在每次重启时自动重新应用。
- 单点登录,全服 VIP — 只需一人(通常是服务器管理员)登录;服务器持有 VIP 凭证后,每位玩家均可播放 VIP(标准 / 高品 / 无损)歌曲。
此移植版的改动
此版本保留了上述所有功能,但已针对 Fabric 加载器重新构建。
Minecraft 26.1.2 (Java 25):
- 从 Forge 1.20.1 移植到 Fabric 26.1.2(需要 Fabric Loader ≥ 0.19.2,Java 25),依赖
net-music 1.5.1+(由 ming-sc 提供的 Fabric 版本)。
- 修复了 Fabric 26.1 上的二维码渲染问题 — 正确捆绑 ZXing 作为阴影 jar,使用新的
RenderPipelines.GUI_TEXTURED blit,并直接从 NativeImage 构建 DynamicTexture,以确保二维码图像能够正常显示。
- 修复了专用服务器的启动崩溃 — 将模组拆分为
ModInitializer(服务端)和 ClientModInitializer(客户端 GUI)入口点,消除了导致专用服务器出现 NoClassDefFoundError: Screen 的问题。
Minecraft 1.20.1 (Java 17+):
- 从 Forge 1.20.1 移植到 Fabric 1.20.1(mojmap 官方映射,Java 17),依赖
net-music 1.5.1-fabric+mc1.20.1。
/nmbl login 实现为服务器命令 + S2C 数据包 — 在 Fabric 中,客户端命令树会与具有相同根节点的服务器命令冲突,因此登录 GUI 是通过服务器向客户端发送数据包来打开的(适用于单人游戏和多人游戏)。
Minecraft 1.21.1 (Java 21+):
- 从 NeoForge 1.21.1 分支移植到 Fabric 1.21.1(mojmap 官方映射,Java 21),依赖
net-music 1.5.1-fabric+mc1.21.1。
- 现代负载网络协议 — S2C 登录触发使用
CustomPacketPayload + StreamCodec(1.20.5+ 的网络协议)。
所有版本:
- 保留通过持久化 Cookie 实现的单点登录 VIP 共享,并提供 OP 命令以重新加载/清除 Cookie 以及查看/设置音频质量。
为什么使用它
如果你在运行带有 NetMusic 模组的 Minecraft 服务器,并希望玩家无需各自管理账号即可享受 VIP 音乐,此模组可以让一次登录覆盖整个服务器。它还针对当前的 Fabric 世代现代化了登录界面。
要求
| Minecraft |
Java |
必需模组 |
可选 |
| 26.1.2 |
Java 25 |
net-music 1.5.1+ (Fabric), fabric-api, forgeconfigapiport |
cloth-config + modmenu |
| 1.21.1 |
Java 21+ |
net-music 1.5.1+ (Fabric 1.21.1), fabric-api |
cloth-config + modmenu |
| 1.20.1 |
Java 17+ |
net-music 1.5.1+ (Fabric 1.20.1), fabric-api |
cloth-config + modmenu |
forgeconfigapiport 仅在 26.1.2 版本上需要,因为 net-music 本身将其声明为依赖项;net-music 的 1.21.1 / 1.20.1 版本不需要它。
使用方法
在游戏中运行 /nmbl login 以打开登录界面 —— 服务器会向你的客户端发送一个数据包,从而打开 GUI(适用于单人和多人模式)。
OP 命令:
/nmbl server cookie reload # 从配置文件重新加载并应用 Cookie
/nmbl server cookie clear # 清除 Cookie
/nmbl server level # 显示当前音频质量等级
/nmbl server level set <level> # 设置等级:STANDARD / HIGHER / EXHIGH / LOSSLESS / HIRES
安全须知
此模组的配置文件中存储了你的网易云 Cookie,请勿将 Cookie 泄露给他人,否则可能导致账号被盗。如账号被盗用或被封禁,本模组不承担任何责任。请务必保护好你的账号安全。
This mod stores your NetEase Cloud Music cookie in its config file. Never share your cookie with anyone — it can be used to take over your account. The mod is not responsible for any account loss or ban caused by leaked credentials. Please keep your account safe.
致谢
中文介绍看这里
Net Music: Better Login
A Fabric port of ming-sc/NetMusic-BetterLogin (originally built for Forge 1.20.1), bringing better login support to the NetMusic (net-music) mod.
Supported versions: Minecraft 26.1.2 (Java 25), 1.21.1 (Java 21+) and 1.20.1 (Java 17+).
What the original mod does
NetMusic-BetterLogin is an add-on for the NetMusic mod, which lets you play NetEase Cloud Music (网易云音乐) inside Minecraft. The base mod's default login is cumbersome, so Better Login replaces it with convenient login methods and unlocks VIP playback for the whole server:
- QR-code login — scan a QR code with the NetEase Cloud Music mobile app and confirm on your phone.
- Email / account login — sign in with your email, phone number, or username + password.
- SMS verification-code login — receive a code on your phone and log in without a password.
- Persisted login — the session cookie is saved to a config file and automatically reapplied on every restart.
- Single sign-on, server-wide VIP — only one person (usually the server owner) needs to log in; the server then holds a VIP credential and every player can play VIP (standard / Hi-Res / Lossless) songs.
What this port changes
This version keeps all of the above features but is rebuilt for the Fabric loader.
Minecraft 26.1.2 (Java 25):
- Ported from Forge 1.20.1 to Fabric 26.1.2 (Fabric Loader ≥ 0.19.2, Java 25), depending on
net-music 1.5.1+ (which ships a Fabric build by ming-sc).
- Fixed QR-code rendering on Fabric 26.1 — bundled ZXing correctly as a shaded jar, used the new
RenderPipelines.GUI_TEXTURED blit, and built the DynamicTexture directly from a NativeImage so the code image actually displays.
- Fixed dedicated-server startup crash — split the mod into
ModInitializer (server) and ClientModInitializer (client GUI) entry points, removing a NoClassDefFoundError: Screen that broke dedicated servers.
Minecraft 1.20.1 (Java 17+):
- Ported from Forge 1.20.1 to Fabric 1.20.1 (mojmap official mappings, Java 17), depending on
net-music 1.5.1-fabric+mc1.20.1.
/nmbl login implemented as a server command + S2C packet — on Fabric a client command tree shadows server commands with the same root, so the login GUI is opened by the server sending a packet to the client (works in single-player and multiplayer).
Minecraft 1.21.1 (Java 21+):
- Ported from the NeoForge 1.21.1 branch to Fabric 1.21.1 (mojmap official mappings, Java 21), depending on
net-music 1.5.1-fabric+mc1.21.1.
- Modern payload networking — the S2C login trigger uses
CustomPacketPayload + StreamCodec (1.20.5+ networking).
All versions:
- Kept the single sign-on VIP sharing via a persisted cookie, with OP commands to reload / clear the cookie and view / set audio quality.
Why use it
If you run a Minecraft server with the NetMusic mod and want your players to enjoy VIP music without everyone juggling accounts, this mod lets one login cover the entire server. It also modernizes the login UI for the current Fabric generation.
Requirements
| Minecraft |
Java |
Required mods |
Optional |
| 26.1.2 |
Java 25 |
net-music 1.5.1+ (Fabric), fabric-api, forgeconfigapiport |
cloth-config + modmenu |
| 1.21.1 |
Java 21+ |
net-music 1.5.1+ (Fabric 1.21.1), fabric-api |
cloth-config + modmenu |
| 1.20.1 |
Java 17+ |
net-music 1.5.1+ (Fabric 1.20.1), fabric-api |
cloth-config + modmenu |
forgeconfigapiport is only required on 26.1.2 because net-music itself declares it as a dependency; the 1.21.1 / 1.20.1 builds of net-music do not need it.
Usage
Run /nmbl login in-game to open the login screen — the server sends a packet to your client, which opens the GUI (single-player and multiplayer).
OP commands:
/nmbl server cookie reload # reload and apply the cookie from the config file
/nmbl server cookie clear # clear the cookie
/nmbl server level # show the current audio quality level
/nmbl server level set <level> # set level: STANDARD / HIGHER / EXHIGH / LOSSLESS / HIRES
Security Notice
此模组的配置文件中存储了你的网易云 Cookie,请勿将 Cookie 泄露给他人,否则可能导致账号被盗。如账号被盗用或被封禁,本模组不承担任何责任。请务必保护好你的账号安全。
This mod stores your NetEase Cloud Music cookie in its config file. Never share your cookie with anyone — it can be used to take over your account. The mod is not responsible for any account loss or ban caused by leaked credentials. Please keep your account safe.
Credits
评论 0
登录后参与评分
还没有评论,来抢沙发吧