RecipeCooldown

RecipeCooldown

Mod

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

Server OptimizationUtility

10.0k downloads
36 followers
Createda year ago
Updateda year ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

RecipeCooldown

Supports Minecraft 1.16 - 1.20 with the Fabric/Quilt modloader, designed for client-side.

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 only allow the player to request a recipe every 100ms/0.1s (This is usually enough to prevent excessive spamming).

If you want other value for any reason, create a file called recipe_cooldown.cfg in the config folder, with a number inside representing the timeout in millisecond.

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.

External resources



Project members

LX86

Owner


Technical information

License
MIT
Client side
unsupported
Server side
required
Project ID