唱片机自定义唱片修复
Minecraft 1.21 注意事项
该模组所修复的漏洞报告已在 Minecraft 1.21 中标记为已解决。
本模组将继续更新,并提供了 1.21 版本。然而,在 Minecraft 1.21 中,强烈建议使用原版通过数据包添加自定义唱片的方式。相关信息可查阅 此处。
如果您仍然希望仅通过资源包来播放自定义唱片,则仍需要此模组。自 1.21 版本起,本模组现在也在客户端侧修复了该漏洞,这意味着您可以加入任何带有自定义唱片资源包的服务器,而不会出现唱片被截断的问题。
README
本模组修复了漏洞 MC-260346,该漏洞会导致自定义音乐唱片在唱片机中播放时,在原版唱片通常会结束的地方被截断。
修复方案在服务端实现:仅当唱片物品从唱片机中被移除时(无论是通过漏斗还是玩家点击唱片机),才通知客户端停止播放唱片声音;而在原版 Minecraft 中,一旦原版唱片本该结束,客户端就会被通知停止播放唱片声音。
自 Minecraft 1.21(模组版本 0.1.4-1.21)起,本模组也增加了客户端侧的修复。这是通过忽略服务端发送给客户端的所有“停止播放歌曲”数据包来实现的,改为仅在播放歌曲的唱片机的 has_record 方块状态设置为 false 时,客户端才停止播放歌曲。
如果安装在服务器上,连接至该服务器的客户端无需安装此模组。
欢迎在问题追踪器中报告任何漏洞。
许可证
本模组遵循 GNU LGPLv3 许可证。
捐赠
如果您喜欢这个模组,请考虑 捐赠。
Discord
如需支持或有任何疑问,欢迎加入 我的 Discord。
版本支持
| Minecraft 版本 | Fabric | Quilt | NeoForge | Forge |
|---|---|---|---|---|
| 26.2.x | ✅ 当前支持 | ✔️ 请使用 Fabric 版本 | ✅ 当前支持 | ❌ 不可用 |
| 26.1.x | ✔️ 可用,不再提供支持 | ✔️ 请使用 Fabric 版本 | ✔️ 可用,不再提供支持 | ❌ 不可用 |
| 1.21.6+7+8+9+10+11 | ✔️ 可用,不再提供支持 | ✔️ 请使用 Fabric 版本 | ❌ 不可用 | ❌ 不可用 |
| 1.21.5 | ✔️ 可用,不再提供支持 | ✔️ 请使用 Fabric 版本 | ❌ 不可用 | ❌ 不可用 |
| 1.21.4 | ✔️ 可用,不再提供支持 | ✔️ 请使用 Fabric 版本 | ❌ 不可用 | ❌ 不可用 |
| 1.21.2+3 | ✔️ 可用,不再提供支持 | ✔️ 请使用 Fabric 版本 | ❌ 不可用 | ❌ 不可用 |
| 1.21+1 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 请使用 Fabric 版本 | ❌ 不可用 | ❌ 不可用 |
| 1.20.5+6 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 可用(无客户端修复),不再提供支持 | ❌ 不可用 |
| 1.20.4 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 可用(无客户端修复),不再提供支持 | ❌ 不可用 |
| 1.20.2 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 请使用 Fabric 版本 | ❌ 不可用 | ❌ 不可用 |
| 1.20.1 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 请使用 Fabric 版本 | ✔️ 可用(无客户端修复),不再提供支持 | ✔️ 可用(无客户端修复),不再提供支持 |
我尽量保持对 Minecraft 最新主要版本和最新次要版本的支持。由于我有时没有足够的时间立即更新我的模组,因此对新 Minecraft 版本的更新可能会偶尔延迟。
不受支持的模组仍然可以下载,但不会再获得新功能或错误修复。
除了 Fabric 之外的加载器端口适用于 1.20.x 版本。对于 Minecraft 26.1 及以上版本,此模组同时提供 Fabric 和 NeoForge 版本。
使用方法
无需安装 Fabric API。在多人游戏中,如果该模组已安装在服务端,则客户端无需安装此模组。
Jukebox Custom Disc Fix
Minecraft 1.21 notice
The bug report for the bug this mod fixes has been marked as resolved as of Minecraft 1.21.
This mod will continue to be updated and has a 1.21 version, however as of Minecraft 1.21 it is strongly recommended to use the vanilla Minecraft way of adding custom discs, which is through datapacks. Information about how to do so can be found here.
If you still wish to listen to custom discs through just the use of a resource pack though, you will need this mod. As of 1.21 this mod now fixes the bug client-side as well, meaning you can join every server with a custom disc resource pack, without the disc being cut off.
README
This mod fixes bug MC-260346, which causes custom music discs, when played in a jukebox, to be cut off when the vanilla disc would normally end.
The fix is implemented server-side by only telling the client to stop playing a disc sound when the disc item is removed from the jukebox (either by a hopper or by a player clicking on the jukebox), whereas in vanilla Minecraft the client is told to stop playing a disc sound as soon as the vanilla disc would end.
As of Minecraft 1.21 (mod version 0.1.4-1.21), this mod has a client-side fix as well. This is implemented
by ignoring all packets the server sends to the client that tell the client to stop playing a song,
and instead have the client only stop playing a song when the has_record block state for the jukebox
playing the song has been set to false.
When installed on servers, this mod does not have to be installed on clients connecting.
Feel free to report any bugs, at the issue tracker.
License
This mod is licensed under GNU LGPLv3.
Donating
If you like this mod, consider donating.
Discord
For support and/or any questions you may have, feel free to join my discord.
Version support
| Minecraft Version | Fabric | Quilt | NeoForge | Forge |
|---|---|---|---|---|
| 26.2.x | ✅ Current | ✔️ Use Fabric version | ✅ Current | ❌ Unavailable |
| 26.1.x | ✔️ Available, won't receive support | ✔️ Use Fabric version | ✔️ Available, won't receive support | ❌ Unavailable |
| 1.21.6+7+8+9+10+11 | ✔️ Available, won't receive support | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.21.5 | ✔️ Available, won't receive support | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.21.4 | ✔️ Available, won't receive support | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.21.2+3 | ✔️ Available, won't receive support | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.21+1 | ✔️ Available (no client side fix), won't receive support | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.20.5+6 | ✔️ Available (no client side fix), won't receive support | ✔️ Available (no client side fix), won't receive support | ✔️ Available (no client side fix), won't receive support | ❌ Unavailable |
| 1.20.4 | ✔️ Available (no client side fix), won't receive support | ✔️ Available (no client side fix), won't receive support | ✔️ Available (no client side fix), won't receive support | ❌ Unavailable |
| 1.20.2 | ✔️ Available (no client side fix), won't receive support | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.20.1 | ✔️ Available (no client side fix), won't receive support | ✔️ Use Fabric version | ✔️ Available (no client side fix), won't receive support | ✔️ Available (no client side fix), won't receive support |
I try to keep support up for the latest major and latest minor release of Minecraft. Updates to newer Minecraft versions may be delayed from time to time, as I do not always have the time to immediately update my mods.
Unsupported mods are still available to download, but they won't receive new features or bugfixes.
Ports for modloaders other than Fabric are available for 1.20.x versions. For Minecraft 26.1 and above, this mod is available for both Fabric and NeoForge.
Usage
The Fabric API is not required. This mod is not required on clients when playing multiplayer and the mod is installed server-side.
下载 Jukebox Custom Disc Fix
下载 Jukebox Custom Disc Fix
下载 Jukebox Custom Disc Fix
下载 Jukebox Custom Disc Fix
下载 Jukebox Custom Disc Fix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Jukebox Custom Disc Fix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Jukebox Custom Disc Fix
下载 Jukebox Custom Disc Fix
下载 Jukebox Custom Disc Fix
下载 Jukebox Custom Disc Fix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 更新至 26.3。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧