RecipeCooldown

RecipeCooldown

Mod

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

Server OptimizationUtility

32.7k downloads
59 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

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 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.


Project members

LX86

Owner

Details

Licensed MIT
Published 2 years ago
Updated 2 years ago