TNTQueue

TNTQueue

Mod

The mod is designed to limit the number of simultaneously active primed TNT entities.

Server OptimizationUtility

1,705 downloads
13 followers
Follow Save

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.


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


You can visit my little contact card,
And you are welcome to support me via the following links:
ko-fi monobank


Project members

somyk

Member

Details

Licensed MPL-2.0
Published a year ago
Updated 2 months ago