Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenny-hui/recipecooldown
Server-side fabric mod to enforce cooldown for crafting recipe request
https://github.com/kenny-hui/recipecooldown
fabric-mod minecraft mod
Last synced: 11 days ago
JSON representation
Server-side fabric mod to enforce cooldown for crafting recipe request
- Host: GitHub
- URL: https://github.com/kenny-hui/recipecooldown
- Owner: Kenny-Hui
- License: mit
- Created: 2023-04-17T07:19:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-25T07:59:47.000Z (2 months ago)
- Last Synced: 2024-10-11T00:15:09.758Z (28 days ago)
- Topics: fabric-mod, minecraft, mod
- Language: Java
- Homepage:
- Size: 120 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RecipeCooldown
When a player click on a crafting recipe, it sends a request to the server to find that recipe 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 (Even with just autoclicker) to effectively lag out the server.This is a simple Fabric mod that prevents excessive crafting recipe request from the client to lag out the server.
Tested on MC 1.17 - 1.19.## 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 numeric value inside representing the timeout millisecond.## License
This project is licensed under the MIT License.