TNTQueue
This a mod that prevents excessive server lag caused by large amounts of primed TNT. It does this by limiting the number of TNT entities that can be active at the same time.
When the active TNT count exceeds the configured limit, additional TNT is placed into a queue and activated later, ensuring explosions remain manageable without overwhelming the server.
Warning: this may break the vanilla behavior of TNT, as the logic of its spawn has changed.
Configuration
The mod provides two configurable options, which can be adjusted either manually in the config file or via an in-game command:
-
maxPrimedTntAmount: — The maximum number of primed TNT entities allowed to exist simultaneously. -
maxQueueSize: — The maximum number of TNT entities that can be stored in the queue.
⚠️ Default values are arbitrary and should be tuned for your specific server setup. The intention of the mod is to block TNT usage at levels that could otherwise cause the server to freeze.
You can adjust the configuration in-game using the command:
/tntqueue <option> <value>
Requires the tntqueue.modify permission or op.
In the example limit is up to 3 tnt.
You are welcome to support me via the following links:
How to Install TNTQueue (Mod)
TNTQueue by somyk is verified for Fabric across Minecraft versions 1.21, 1.21.1, 1.21.10, 1.21.6, 1.21.7, 1.21.8, 1.21.9 (latest release: 1.21.9-0.4, file size: 433 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21, 1.21.1, 1.21.10, 1.21.6, 1.21.7, 1.21.8, 1.21.9) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded TNTQueue file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionImplementing a maximum queue size to prevent memory exhaustion;
Implementing logging for debugging and monitoring queue status and discards;