RecipeCooldown

RecipeCooldown

Mod

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

Server OptimizationUtility

108 downloads
9 followers
Createda month ago
Updateda month ago

Purpose

Whenever a player click on an item in the recipe book, it sends a packet to the server to find that recipe for you and fill in the appropriate items to the crafting slots.

However, no cool down has been implemented officially, meaning a malicious player can spam packets to the server at an excessive rate (Even with just autoclicker) and effectively lagging out the server.

This is a simple Fabric-compatible mod that prevents excessive crafting recipe request from the client to lag out the server.

Config

By default, the mod will only allow the player to request a recipe every 100ms (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

You may open an GitHub issue here, please keep things civil :)

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