Blockify 模组
原版 Blockify 的分支版本 —— 将你的 Spotify 播放信息覆盖显示在 Minecraft HUD 上:曲目标题、艺术家、专辑封面、进度条和音量。
依赖要求
- Fabric Loader 0.19.2+ 与 Fabric API 环境下的 Minecraft 26.1.2
- Java 25 或更高版本
- MidnightLib 1.9.3+(用于游戏内配置界面)
- Spotify Premium 账号(用于播放控制的 Web API 端点仅限 Premium 用户使用)
使用方法
按一次 Play/Pause 键会在浏览器中打开 Spotify 授权页面。Blockify 会在端口 8001 运行一个临时本地服务器以接收 OAuth 回调;令牌存储在 config/blockifyTokens.json 中。
默认按键绑定
| 操作 | 按键 |
|---|---|
| 播放/暂停(首次运行时为授权) | Num 5 |
| 上一首歌曲 | Num 4 |
| 下一首歌曲 | Num 6 |
| 将当前曲目保存到你的库中 | L |
| 强制更新 | Num 8 |
| 隐藏 Blockify HUD | Num 9 |
| 增加音量 | Num + |
| 降低音量 | Num - |
| 切换游戏内音乐 | Num 1 |
所有绑定均可在 Minecraft 标准控制设置界面的 Blockify 分类下重新映射。
指令
/sharetrack— 将当前播放曲目的链接发送到聊天栏(仅你自己可见)。
配置
通过 Mod Menu → Blockify 打开游戏内配置界面。可用选项包括 HUD 缩放、位置、锚点角落、专辑封面开关、标题/艺术家/时间/进度条/背景的自定义颜色、背景透明度、游戏内音乐音量以及音量步进值。
截图
从源码构建
./gradlew build # 构建模组 JAR(输出至 build/libs/)
./gradlew runClient # 启动带有该模组的开发版 Minecraft 客户端
贡献
我们非常欢迎您的贡献。
- Fork 本项目
- 创建功能分支 (
git checkout -b feature/AmazingFeature) - 提交更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 发起 Pull Request
本地化
翻译通过 Crowdin 进行管理——请勿提交硬编码翻译字符串的 PR。
Blockify Mod
Fork of the original Blockify — overlays your Spotify playback on the Minecraft HUD: track title, artist, album art, progress bar, and volume.
Requirements
- Minecraft 26.1.2 with Fabric Loader 0.19.2+ and Fabric API
- Java 25 or newer
- MidnightLib 1.9.3+ (for the in-game config screen)
- A Spotify Premium account (the Web API endpoints used for playback control are Premium-only)
How to use
Press Play/Pause once to open the Spotify authorization page in your browser. Blockify runs a temporary local server on port 8001 to receive the OAuth callback; tokens are stored in config/blockifyTokens.json.
Default key bindings
| Action | Key |
|---|---|
| Play/Pause (or Authorize on first run) | Num 5 |
| Previous Song | Num 4 |
| Next Song | Num 6 |
| Save current track to your library | L |
| Force Update | Num 8 |
| Hide Blockify HUD | Num 9 |
| Increase Volume | Num + |
| Decrease Volume | Num - |
| Toggle In-Game Music | Num 1 |
All bindings can be remapped from the standard Minecraft Controls screen under the Blockify category.
Commands
/sharetrack— sends a link to the currently playing track into chat (visible only to you).
Configuration
Open the in-game config screen via Mod Menu → Blockify. Available options include HUD scale, position, anchor corner, album-art toggle, custom colors for title/artist/time/progress bar/background, background transparency, in-game music volume, and volume step.
Screenshots
Building from source
./gradlew build # build the mod JAR (output in build/libs/)
./gradlew runClient # launch a dev Minecraft client with the mod
Contributing
Contributions are greatly appreciated.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Localisation
Translations are managed through Crowdin — please don't open PRs that hardcode translated strings.
下载 Blockify
下载 Blockify
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blockify
下载 Blockify
下载 Blockify
下载 Blockify
下载 Blockify
下载 Blockify
下载 Blockify
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blockify
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新到 MC 26.1.2,使用 Mojang 映射,版本提升至 1.3.0-alpha
- 从 Yarn 迁移至 Mojang 官方映射(Minecraft 26.1.2 不再混淆)
- 更新 Loom 插件 (net.fabricmc.fabric-loom 1.16-SNAPSHOT)、Gradle 9.5.1、Java 25
- 使用 Fabric HudElementRegistry 替换 InGameHud mixin
- 将所有客户端逻辑从 BlockifyMain 移至 BlockifyClient(无主入口点)
- 迁移 API:Minecraft、Component、KeyMapping、GuiGraphicsExtractor、FormattedCharSequence 等
- 移除 RenderUtil(专辑封面现通过 GuiGraphicsExtractor.blit 绘制)
- 升级 fabric-api 0.149.0+26.1.2、midnightlib 1.9.3+26.1-fabric、loader 0.19.2
包含的错误修复:
- 修复 HUD 隐藏时的矩阵栈泄漏(push 后未匹配 pop)
- 在 parseInt 之前保护音量控制免受 null hudInfo[6] 影响
- 修复 OAuth 回调 URL 解析(处理代码中的 '='、多个参数)
- 修复认证成功页面中的拼写错误 </body? ->
- 修复 put/post/addTrack 中 'Connection reset' 导致的无限递归
- 在 InterruptedException 发生时正确终止 Spotify 轮询线程
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧