How to Fix Raytrace / Block Interaction Crash
Vanilla has no raytrace crash text. Block crashes show up as Colliding entity with block or Ticking block entity. How to find the block and remove it.
Quick Fix
Take the coordinates from Block location in the crash report, replace that block with /setblock <x> <y> <z> air and update the mod that adds it.
Error Message
Description: Colliding entity with blockHow to Fix
Open the newest file in crash-reports and find Block location. The World: (x,y,z) part is the exact block.
Run /setblock <x> <y> <z> air with those numbers while you are close enough for that chunk to be loaded.
Update the mod whose classes appear in the stack trace. If there is no fix yet, back up the world before removing the mod, because its blocks disappear with it.
On a server, search the log for Failed to handle packet. A broken right-click on a block ends up there with its stack trace, while the server keeps running.
If many blocks crash, restore that area or the whole world from a backup.
Common Causes
- A modded block throws an error when an entity walks into it or stands inside it. The report then says Colliding entity with block and lists Block being collided with and Entity being checked for collision.
- A block entity fails while it ticks or renders. That gives Ticking block entity or Rendering Block Entity, and the Name line shows the block entity ID and its Java class.
- A block model or shape fails while a chunk is built for rendering, which shows up as Tesselating block in world.
- A block update goes wrong, for example a modded block reacting to redstone or to a neighbor. The description is Exception while updating neighbours, with Block being updated and Source block type below it.
- The game crashes as soon as you look at a block. Finding what the crosshair points at reads the block's shape, so broken shape code in a mod fails right there, and the stack trace names that mod's classes.
Diagnostic Steps
- Open the newest crash report.
- Read the description and Block location.
- Run /setblock <x> <y> <z> air near the block.
- Update the mod from the stack trace.
FAQ
What is raycasting in Minecraft?
It is how the game finds what your crosshair points at, by following your view until it hits a block shape or an entity's hitbox. No vanilla crash report calls it raytrace or raycast, so those words come from a mod.
Why doesn't a server crash when a block's right-click code fails?
The server catches errors while it handles a player's packets. It logs Failed to handle packet followed by suppressing error and carries on. Only an OutOfMemoryError there still crashes it, with Main thread packet handler.
What does Network Protocol Error mean?
The client failed to handle a packet from the server and disconnected. The log shows Failed to handle packet followed by disconnecting, and a client mod that breaks on a block update can cause it.