为什么制作这个模组
我试图在 Skywars(空岛战争)中演奏音符盒歌曲,但由于我的网络延迟导致游戏卡顿严重,使得演奏变得非常困难。过去,我只能静音游戏内的声音来演奏。这个模组通过让客户端直接播放声音来消除延迟,从而解决了这个问题。即使在单人游戏中使用音符盒,它也能帮助减少卡顿!
安装方法
要使用此模组,只需将模组文件放入你的 mods 文件夹即可。你还需要安装 Fabric API。
该模组会自动阻止不必要的声音——包括来自服务器的重复声音以及音符盒被破坏时的方块破碎声。一旦安装了该模组,它将立即生效,无需任何配置!
支持我!
通过在 GitHub 上赞助我来请我喝杯咖啡:
你也可以订阅我的 YouTube 频道:
如果你在使用此模组制作视频时,在描述中链接到这个模组和/或我的 YouTube 频道,我将不胜感激。:)
常见问题解答 (FAQ)
你能为 1.8 版本制作这个模组吗?
不能,因为 1.13 之前的版本不会向客户端发送音符盒的方块数据。此外,这些数据还允许你使用资源包来显示音符盒当前的音符状态。
这个模组具体做了什么?
要在 Minecraft 中正常演奏音符盒(点击它),游戏首先必须向服务器发送一个数据包,表明你点击了该方块。然后服务器需要处理该数据包,并识别出需要播放声音。一旦服务器确定需要播放声音,它会向客户端发送另一个数据包以通知其播放声音。只有当客户端收到此数据包后,才会真正开始播放声音。这个过程可能需要数百毫秒(取决于你与服务器的延迟),这使得像我在视频中那样演奏音符盒歌曲变得困难。此模组通过跳过服务器端来解决这个问题。安装此模组后,客户端会检查你是否点击了音符盒,如果是,则会立即播放声音。它还会过滤掉服务器仍然发送给客户端的声音,以及你破坏方块时产生的声音。
为什么这个模组在 X 服务器上不起作用?
此模组在某些使用协议篡改(protocol hack)的服务器上无法正常工作,因为此模组需要正确的方块数据发送到客户端。(不过 Hypixel 是兼容的)
Why I made this mod
I was trying to play a noteblock song in skywars, but playing the song with all of the lag that was caused by my ping made it too hard to play. In the past, I would just mute my sounds in-game and play. This mod solves this issue by eliminating the lag by having the client play the sound. This also even helps reduce lag when playing noteblocks in singleplayer!
Installation
To use this mod simply add the mods to your mods folder. You will also need to install the fabric API.
The mod will automatically prevent unwanted sounds – duplicate sounds from the server and block break sounds on noteblocks from playing. Once you install the mod it will immediately work, and nothing needs to be configured!
Support Me!
Buy me some coffee by sponsoring me on GitHub:
You can subscribe to my YouTube channel:
And if you use this mod while making a video it would be greatly appreciated if you link to this mod and/or my youtube channel in the description. :)
FAQ
Can you make this for 1.8?
No, this mod uses block data of noteblocks that are not sent to the client pre-1.13. This data also allows you to use a texture pack to display the current note of noteblock.
What does this mod actually do?
To play a noteblock normally in Minecraft (by clicking on it), the game first has to send a packet to the server that you've clicked the block. The server then has to process that packet and sees that a sound needs to be played. Once the server sees that a sound needs to be played it sends a packet back to the client to tell it to play a sound. Only once the client receives this packet does it actually start playing the sound. The time for this could reach into the hundreds of ms (depending on your ping to the server) and can make it difficult to play a noteblock song as I did in the video. This mod solves the issue by cutting out the server when trying to play a noteblock. With this mod installed the client checks if you've clicked a noteblock and if you have it plays the sound immediately. It also filters out the sounds that the server still sends to the client and the sounds that you get from breaking a block.
Why isn't this mod working on X server?
This mod will not work on some servers that use a protocol hack because this mod requires the proper block data to be sent to the client. (Hypixel does work though)
评论 0
登录后参与评分
还没有评论,来抢沙发吧