9 min read

Fix a "Ticking Entity" Crash on a Minecraft Server

Read the crash report to find the exact mob and coordinates, delete it with an offline world editor, and handle the modded-pack version of the same crash.

Fix a "Ticking Entity" Crash on a Minecraft Server

A "Ticking Entity" crash means one specific mob or block entity threw an error partway through a server tick and dragged the whole server down with it. The crash report names the culprit outright: the entity type and its exact coordinates. Open the newest file in crash-reports/, find the -- Entity being ticked -- section, note the entity and its XYZ, then remove it. The reliable way is to stop the server and delete that entity with an offline world editor, though a plugin or /kill can do it if the server stays up long enough. On a modded pack the same crash usually points at a mod's entity instead of a vanilla one. Back up your world before you touch anything, and you'll be back online in a few minutes.

Read the crash report: find the exact entity

When the server dies to this, it writes a file named like crash-2026-07-01_14.22.05-server.txt into the crash-reports/ folder next to your server jar. That's the server-side report, not anything in your client's .minecraft folder, so grab it from the host. The top line is the giveaway:

java.lang.NullPointerException: Ticking entity

For a block, like a hopper or a spawner that's gone wrong, it reads Ticking block entity instead. The Description: field near the top of the report reads the same short string — Ticking entity or Ticking block entity. Some versions throw a different exception type on that top line, so don't fixate on the NullPointerException part specifically — what matters is that the crash names a ticking entity or block entity.

Now scroll down past the stacktrace to the section headed -- Entity being ticked -- (or -- Block entity being ticked -- for the block case). This block is the whole point of the report. It lists the entity type, an entity ID, a name, and its location — an Entity Type line and a coordinates line with exact XYZ plus the world or dimension it's in. Something like a zombie at -412 / 63 / 1880 in world, or a hopper at a block position in world_nether. Write those numbers down. That's the thing you're going to remove.

If your server didn't crash so much as freeze, and the report instead says A single server tick took 60.00 seconds (should be max 0.05) followed by Considering it to be crashed, server will forcibly shutdown, that's a different animal — a watchdog timeout, not a ticking-entity NPE. It means something took too long, not that one entity errored out. That path is more about lag than a single bad mob; reducing entity and mob lag and chasing down TPS spikes are the right reads for that one.

Turn the coordinates into a chunk and region file

To delete the entity offline you need to find which file it lives in. Minecraft stores the world in .mca region files (the Anvil format), each covering a 32x32 block of chunks. To go from block coordinates to the region file, divide by 512 and floor the result:

  • region X = floor(blockX / 512)
  • region Z = floor(blockZ / 512)

So an entity at X -412, Z 1880 sits in region -1, 3, which is the file r.-1.3.mca. (If you're working in chunk coordinates instead, divide those by 32.) That file lives under the matching dimension folder: world/ for the overworld, world_nether/ for the nether, world_the_end/ for the end.

One wrinkle worth knowing: recent versions store entities separately from the block/terrain data. Instead of sitting in world/region/, mobs and items now live in region files under world/entities/. So for an actual creature you'll usually want the entities/ folder; for a block entity like a hopper or spawner you're back in the normal region/ files. The coordinate math is the same either way. This is also why the crash is so reproducible — the entity is saved into that chunk, so every time the chunk loads the server tries to tick it and dies again in the same spot. That loop is what you're breaking.

Remove the entity offline (the reliable way)

This is the method that actually works when you're stuck in a crash loop, because it doesn't depend on the server staying up.

  1. Stop the server fully. Not just kick players — shut the process down so the world files aren't locked. Editing .mca files while the server holds session.lock is how you corrupt a world.
  2. Back up first. Copy the whole world folder somewhere safe before you edit a byte. Offline world editing is exactly the situation the backup was made for; if you don't have a routine yet, set up server backups and take a manual copy right now.
  3. Open the world with an offline editor. MCA Selector and NBTExplorer are the two commonly used tools for this. Point the tool at your world folder, navigate to the chunk containing your coordinates (both let you find a chunk by position), and either delete the single offending entity from that chunk's NBT or delete the whole chunk so it regenerates.
  4. Save and restart. Bring the server back up and load that area.

Deleting just the one entity is the surgical option and keeps everything else intact. Deleting the entire chunk is the nuclear option — the chunk regenerates fresh, which wipes any build in that one chunk (a 16x16 column) but guarantees the bad entity is gone. If the crash spot is out in unimportant wilderness, regenerating the chunk is the fast fix. If there's a base there, delete the single entity instead.

Kill it in-game if the server stays up long enough

Sometimes the server survives for a few seconds after start before the bad chunk loads and it crashes again. If you can grab that window, you can remove the entity without ever touching world files. Run a targeted kill as fast as you can:

/kill @e[type=zombie,x=-412,y=63,z=1880,distance=..8]

or more broadly /kill @e[type=item] to sweep dropped items if that's the pileup. A cleanup plugin like ClearLagg can do the same with /lagg clear to wipe loose entities in loaded chunks. Be honest with yourself, though: in a tight crash loop the crash usually fires on the very tick that loads the chunk, before any command lands, which is exactly why the offline route exists. Try the in-game kill once; if the server dies before you can act, don't keep fighting it — stop the server and edit the file.

If the crash isn't tied to one clear entity and you're not even sure a ticking entity is the real cause, step back to the broader crash triage guide, which walks through reading the whole report rather than just this one section.

Modded packs: it's usually a mod's entity

On a Forge or Fabric pack the crash report reads the same way, but the -- Entity being ticked -- section will name a modded entity — the Entity Type carries a mod namespace, something like modid:some_creature instead of a plain minecraft: type. That first non-vanilla name in the stacktrace is your suspect, and it tells you which mod is misbehaving.

The fix shifts from editing the world to fixing the mod:

  • Match versions. A ticking-entity crash on a pack is very often a mod that's the wrong version for the pack or for the Minecraft version. Make sure every mod matches what the pack expects.
  • Update or remove the offending mod. If a newer build of that mod exists, try it. If the mod is optional, pulling it out is the quick test — if the crash stops, you found it.
  • Skip crashing entities. Some "crash utilities" style mods can catch a crashing entity and remove it instead of taking the whole server down, which buys you time to diagnose without a hard loop.

You can still delete the modded entity with the offline editor if you just want back online now, but the world edit only clears the one that already exists — until the mod itself is fixed, another can spawn and crash you again.

FAQ

Which tool and folder do I open for an entity versus a block entity?

For a mob on a current version, open the entities/ region files with MCA Selector, which is built to browse and delete chunks by position and is the easier tool when you just want the offending chunk gone. For a block entity like a hopper, chest, or spawner, you're in the normal terrain region/ files instead, and NBTExplorer is handy when you want to open a single chunk's raw NBT and pick out one tile entity by hand rather than nuking the chunk. On older worlds that predate the entities/ split, both kinds live together in region/.

Does deleting one entity affect nearby chunks or players standing there?

No. Removing a single entity only touches that one mob or block entity; the surrounding blocks, other mobs, and neighboring chunks are untouched, and a player standing there just sees the thing vanish. The only case where nearby content is at risk is the nuclear option of regenerating a whole chunk, and even then the damage stops at that chunk's 16x16 border — the eight chunks around it are left alone. Since you're doing this with the server stopped anyway, nobody is loaded in while you edit.

It crashed again at a different spot — now what?

If a fresh crash report names a different entity at different coordinates, you've got more than one bad entity, so repeat the same process on the new one. If it keeps happening across many locations, or the new report doesn't point at a ticking entity at all, the root cause is probably something broader — a bad plugin or mod spawning them, a corrupted region, or a version mismatch — and it's worth working through general crash triage rather than deleting entities one at a time forever.