← Назад к ресурсам

RecipeCooldown

Prevents player from spamming excessive recipe book packets to lag out the server

Modrinth optimization utility

Описание

# 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](https://modrinth.com/mod/mcqoy) for client-side editing, or [QoMC](https://modrinth.com/mod/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](https://github.com/AmberIsFrozen/RecipeCooldown/issues)! ## License This project is licensed under the MIT License.