RecipeCooldown
支持 Minecraft 1.16+,适用于 Fabric/Quilt 加载器,专为服务端和多人游戏环境设计。
用途
每当玩家在配方书(Recipe Book)中点击某个物品时,它会向服务器发送请求以查找该配方,并将相应的物品填充到合成槽中。
然而,Mojang 官方并未实现任何冷却机制,这意味着恶意玩家可以以极高的频率向服务器发送数据包(即使仅使用自动点击器),从而导致服务器卡顿。
这是一个简单的兼容 Fabric 的模组,旨在防止客户端过度发送合成配方请求而导致服务器卡顿。
本模组不会神奇地加速你的游戏,它只是阻止了允许玩家疯狂发送数据包并导致服务器卡顿的漏洞
配置
默认情况下,模组允许玩家每 50ms/1 tick 请求一次配方。
要配置模组:
v1.1.0 (仅限 MC 26.1+)
你可以编辑 config/recipecooldown.toml 中的值,重启后生效。
或者,你可以使用 McQoy 进行客户端侧编辑,或使用 QoMC (/recipecooldown_config) 进行服务端侧编辑。通过这些模组配置后,效果将立即生效。
v1.0.0
你可以在 config 文件夹中创建一个名为 recipe_cooldown.cfg 的文件,并在其中写入一个数字,代表超时时间(毫秒)。重启后生效。
Bug/建议
如果你有任何建议或需要报告 Bug,请随时在此处提交 GitHub Issue:这里!
许可证
本项目采用 MIT License 授权。
RecipeCooldown
Supports Minecraft 1.16+ with the Fabric/Quilt modloader, designed for server-side and multiplayer environment.
Purpose
Whenever a player click on an item in the recipe book, it sends a request to the server to find that recipe for you and fills in the appropriate items to the crafting slots.
However, no cool down has been officially implemented by Mojang, meaning a malicious player can spam packets to the server at an excessive rate (Even with just auto-clicker) and effectively lag out the server.
This is a simple Fabric-compatible mod that prevents excessive crafting recipe request from the client to lag out the server.
This mod doesn't magically speed up your game, it simply prevents an exploit that allows player to spam packets and causing lags on the server
Config
By default, the mod will allow the player to request a recipe every 50ms/1 tick.
To configure the mod:
v1.1.0 (MC 26.1+ only)
You can edit the values in config/recipecooldown.toml, it will take effect after restart.
Optionally, you may use McQoy for client-side editing, or QoMC (/recipecooldown_config) for server-side editing. Effects will take place immediately when configured via those mods.
v1.0.0
You can create a file called recipe_cooldown.cfg in the config folder, with a number inside representing the timeout in millisecond. It will take effect after restart.
Bugs/Suggestion
If you have any suggestions or bug report, don't hesitate to open an GitHub issue here!
License
This project is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧