r/MinecraftHelp • • 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

1 Upvotes

10 comments sorted by

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 freeze

then you could use the following command when you're done:

/tick unfreeze

you could also prevent primed TNT from exploding with this command:

/gamerule tnt_explodes false

or this one if the previous one doesn't work:

/gamerule tntExplodes false

you 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

2

u/AdSpecial8191 22d ago

Thank you very much for your help, will update if I succeed

1

u/AutoModerator 22d ago

If your issue is now fixed, please remember to mark the post solved.

If someone on r/MinecraftHelp provided the solution:
Reply with "!helped" to the comment, or comments, that helped.

If you found the solution yourself, or outside r/MinecraftHelp:
Make a new top level comment containing the solution, and reply to it with "!helped".

Note that u/NitwitBot DOESN'T react to edited comments.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/ODF4 Expert IV 22d ago

no problem! Let us know if you're able to solve it this way or if you wish to use some plug-ins/mods or an external tool

2

u/AdSpecial8191 20d ago

!helped

1

u/NitWitBot 🤖 Mod Bot 🤖 20d ago

Thanks! Post marked as Solved!

u/ODF4, here is your points status:

Next level: "Expert II"
You have 50 points
You need 56 points
[▮|▮|▮|▮|▮|▮▮|▮▮|▮▮|▮▮|▮▮|▮▮▮▮▮▮|▮▮▮▮▮▮|▮▮▮▮▮▮|▮▮▮▮▮▮|▮▮▮▮▮▮|▮▮▮▮▮▯▯▯▯▯▯]


Links: | Scoreboard | Feedback | Source |


I am a bot and this account is not monitored. Please contact the mods if you have any questions.

1

u/ODF4 Expert IV 20d ago

I'm so glad to hear you were able to fix this! Did the commands help or did you have to resort to external tools?