这是一个分支版本
这是著名模组 Antighost 的一个分支版本。由于原作者已将该项目设为终止维护(EOL),我的目标是让这个模组适配最新的 Minecraft 版本。这是一个社区驱动的分支,欢迎大家查看代码并在 GitHub 仓库中贡献!
原版模组说明
幽灵方块是对客户端而言看似空气、但对服务器而言却是实体的方块。当服务器与客户端不同步时会出现这种情况;在许多情况下,这是由于加速效果消失且两者之间存在网络延迟所致。服务器告知客户端加速效果已消失,但客户端尚未得知这一信息,仍以全速向服务器发送方块破坏事件。服务器认为客户端在作弊,因此不会破坏这些方块;而客户端并不知道这一点,因此认为这些方块现在是空气。当玩家试图进入这些方块时,服务器会将玩家踢回原位。
我通常在使用 MCMMO 插件的服务器上见到这种情况,尤其是在超级挖掘者(Super Breaker)效果结束时,但在信标效果结束时也会出现。
一般来说,修复此问题的唯一方法是重新登录,或者离开并返回以卸载和重新加载区块。本模组允许你在输入 /ghost 命令时,让服务器重新发送玩家周围 4 格半径立方体内的所有方块,从而无需重新登录。或者,只需按 G 键即可。
该效果及模组的实际运行情况可在以下链接看到:
THIS IS A FORK
This is a fork of the well-known mod Antighost, it exist because the original developer has set the project in EOL, so my goal here is to bring the mod to the latest Minecraft releases, it's a community fork, so everyone is invited to check the code and contribute in the Github repo!
Original mod description
Ghost blocks are blocks that seem to be air to the client, but are solid to the server. They occur when the server and client are out of sync; in many cases, this happens when a haste effect wears off and there's some network latency between both. The server tells the client the haste effect is gone, but the client doesn't know about this yet and sends block break events to the server at full speed. The server thinks the client is cheating so it doesn't break the blocks; the client doesn't know that so it thinks the blocks are air now. When the player tries moving into those blocks, the server kicks him back.
I've seen this most often on servers that have MCMMO enabled, when super breaker runs out, but it happens when beacon effects are ending as well.
Generally, the only way to fix this is relogging, or porting away and back, to unload and re-load the chunks. This mod asks the server to resend all blocks around the player when you type /ghost, within a 4 block radius cube, thus making relogging unneccesary. Or, just press the G key.
The effect, and the mod in action, can be seen on
评论 0
登录后参与评分
还没有评论,来抢沙发吧