RecipeCooldown
The mod is compatible with Minecraft version 1.16 and above, works on Fabric/Quilt modloader and is specifically designed for servers and multiplayer gameplay.
What this mod is for
When a player clicks on an item in the recipe book, the client sends a request to the server to find the required recipe and automatically fill the crafting slots with the appropriate items.
Unfortunately, Mojang has not implemented a cooldown system for such requests. This allows malicious players to massively spam packets to the server (even with a simple auto-clicker), which can cause serious lags and slow down the entire server.
RecipeCooldown is a simple solution for Fabric that prevents excessive crafting recipe requests from the client and protects the server from overload.
Important to understand: this mod does not magically speed up your game. It simply blocks the exploit that allows players to spam packets and cause server lags.
Configuration
By default, the mod allows players to send recipe requests every 100 milliseconds (0.1 seconds). This delay is usually sufficient to prevent excessive spamming.
If you need to change this value, create a file called recipe_cooldown.cfg in the config folder and specify a number representing the cooldown time in milliseconds.
Bugs and suggestions
If you find a bug or have suggestions for improving the mod, create an issue on GitHub!
License
The project is distributed under the MIT license.