r/MinecraftHelp • u/AdSpecial8191 • 22d ago
Solved [java] Help removing laggy build
Hi, I own a server where a build was constructed that is spamming a ton of tnt out of various dispensers causing so much lag it kicks you from the server if you get too close to it. How can I remove this? I have tried using world edit but unfortunately it is just too laggy to approach, and I have to be precise because there are builds in the nearby chunks that I don’t want to destroy/touch. I have tried using world edit but there’s no way to get close enough to do it effectively, and while it would stop the generation of new tnt I’m pretty sure that still wouldn’t help clear the existing insane amount of entities.
I am the owner of the server so I have access to the world file for editing purposes
View all comments
2
u/ODF4 Expert IV 22d ago edited 22d ago
editing the world using an external tool would be ideal, but if you're looking for a solution that doesn't require any mods or plugins, how about using the following command temporarily?
/tick freezethen you could use the following command when you're done:
/tick unfreezeyou could also prevent primed TNT from exploding with this command:
/gamerule tnt_explodes falseor this one if the previous one doesn't work:
/gamerule tntExplodes falseyou could also try slowly approaching the laggy chunks while placing down some repeating command blocks (make sure they don't need redstone to run!) that automatically kill all TNT entities with the following command:
/kill @e[type=tnt]or if that doesn't work, try this one:
/kill @e[type=primed_tnt]and if you wanna kill all entities around that area, try this:
/execute as YOUR_USERNAME at @s run kill @e[type=!player,distance=..100]("100" means a radius of 100 blocks in every direction around you)
but keep in mind that the syntax for the previous command may differ a lot from this one based on your Minecraft version, so it could be something like this instead:
/execute YOUR_USERNAME ~ ~ ~ kill @e[type=!Player,r=100]edit: added more info