消耗品优化器!
本模组在处理消耗品(任何食物类物品)时,强制采用更多客户端侧的处理逻辑。
信息
默认情况下,Minecraft 要求用户在消耗物品前等待服务器的响应。虽然这种延迟在低延迟环境下几乎不可察觉,但在高延迟环境下会变得非常明显,并且会导致玩家卡在进食动画中,直到服务器最终作出响应。
此优化器确保所有处理均在客户端完成,而非服务器端,从而允许物品以无延迟的方式被消耗,并在确切的 tick 数结束时完成。服务器仍会应用物品的效果(例如金苹果提供的吸收或再生效果),而客户端则负责实际的进食过程。
高延迟还可能在消耗物品时偶尔导致同步错误,迫使服务器重新启动玩家的进食流程。这进一步拖慢了整体消耗物品的速度,并使体验变得不一致。此优化器通过在不必要时取消服务器发起的重试请求来解决这一问题。
演示视频
服务器退出选项
在使用流行反作弊系统(如 Grim 或 Vulkan)的服务器上,Consumable Optimizer 不太可能被标记为可疑行为。然而,如果你的服务器有报告指出 Consumable Optimizer 导致了误报,或者你不想让服务器玩家使用此模组,你可以为其玩家关闭该功能。
Consumable Optimizer 使用了 WalksyLib 的服务器退出选项,因此请安装 WalksyLibControl 插件(适用于 Spigot、Paper 和 Folia,版本 1.20.5+)并运行以下命令:
/wlcontrol disable consumableoptimizer
或
/wlcontrol disablewithreason consumableoptimizer "Consumable Optimizer is not allowed on this server"
致谢
Consumable Optimizer!
This mod enforces more client-sided processing when handling consumable items (any food item).
Information
By default, Minecraft requires the user to wait for a server response before consuming an item. While this delay is hardly noticeable on low ping, it becomes much more noticable on high ping and causes players to be stuck in an eating animation until the server eventually responds.
This optimizer ensures all of that processing is done client-side rather than server-side, allowing items to be comsumed with no delay and on the exact tick it should be finished. The server still applies the item's effects (such as absorption or regeneration from a golden apple) while the client handles the actual eating process.
High ping can also occationaly causes desyncs when consuming an item, forcing the server to restart the eating process for the player. This further slows the overall process of consuming an item down even more and makes it feel inconsistent. This optimizer fixes this, by cancelling these recalls from the server when unneeded.
Demonstration Video
Server Opt-Out
On servers using popular anti-cheats, such as Grim or Vulkan, it's unlikely for Consumable Optimizer to flag. However, if your server has reports of Consumable Optimizer causing flags or you don't want your player base using the mod, you can switch it off for your players.
Consumable Optimizer uses WalksyLib's server opt-out, so install the WalksyLibControl plugin (Spigot, Paper and Folia, 1.20.5+) and run:
/wlcontrol disable consumableoptimizer
or
/wlcontrol disablewithreason consumableoptimizer "Consumable Optimizer is not allowed on this server"
Credits
评论 0
登录后参与评分
还没有评论,来抢沙发吧