NoLaggTNT

Introduction

The TNT component can:

  • Prevent tick lag caused by too many blocks getting updated each tick
  • Prevent client lag caused by too many explosions being rendered
  • Stop the detonation of TNT as it is going on

Tick lag

The TNT component takes over detonations caused by TNT. This means that, when an explosion occurs triggering TNT, it will not instantly detonate all TNT. Instead it will keep these TNT blocks in a collection, where after a scheduled task detonates these TNT blocks based on the configuration. It doesn't end there; it also uses a new explosion function to update the blocks more efficiently. It basically pre-generates a schematic of blocks vs. damage values, and the explosion is then executed in this schematic. This rids the need for ray-tracing from the center outwards, significantly improving performance. If more than 500 TNT blocks are awaiting to be detonated, it will use simplified entity damage calculations. This makes sure that the server is not spending lots of time generating accurate damage values to items and other TNT entities, as this was using quite a lot of processing power in the past.

Client lag

Since this plugin manually detonates TNT, it was possible for me to handle the explosion packets too. It is pretty stupid to send 20 TNT explosion packets each tick just to cause the client to freeze, so instead it only sends a certain amount of explosions per tick. This is configurable in the configuration as well.

Commands

You can use /lag tnt clear to stop and clear all TNT detonations. When the main NoLagg is installed, you can also use /lag clearall tnt to clear it globally.

Should you use it?

If you have TNT disabled, this plugin is not needed. For all other cases I strongly recommend using this plugin, especially since it keeps your server alive when someone tries to nuke your server. It can even stop the detonation all together, making it impossible for people to nuke your server while being unnoticed. Above all, since you can configure the detonations yourself, it is suitable for any server.


Comments

Posts Quoted:
Reply
Clear All Quotes