1.17.x TNT optimising with plugin.

Discussion in 'Spigot Plugin Development' started by Larskrs, Jul 19, 2021.

  1. I’ve done some research on my server to find that my server is lagging from players using too much TNT’s to explode other bases. I figured out the main laugh was not the explosion but more the fact that nearby tnt was turned into entities that then continue the evil chain. What I want to do is instead use location.explode(explosion force, and seconds before explosion) to explode location in 3 seconds just like normal tnt. I have seen other servers and would love to have it on my own server and my new plugin.

    In short, just go
  2. You can use the ExplosionPrimeEvent, kill the entity when tnt ignites and fire your "location.explode()" thing.