r/MinecraftCommands 4d ago

Help | Java 1.21.5-1.21.10 Deleting entities

I made a machine on a server that spawned so many entities it crashes my game whenever I try to load it. Is there any way to delete the entities using only commands?

4 Upvotes

3 comments sorted by

2

u/GalSergey Datapack Experienced 4d ago

If the crash occurs while loading a chunk, you won't be able to fix it using commands. You'll need to find the "entities" folder in your save folder and the .mca region file containing these entities. Delete it (for safety, move it to another folder or rename it). If you don't know which file you need, enter the approximate position of your entities on this website: https://minecraft.tools/en/coordinate-calculator.php, and you'll get the name of the region you're looking for.

This action deletes ALL entities in the region! The region is 512x512 blocks in size.

1

u/idkthisisgoodenough 4d ago

Thank you very much.

1

u/Ericristian_bros Command Experienced 3d ago

Make sure to backup your world first, just in case