If your Forge Minecraft Server is crashing whenever you connect, it's likely you have a ticking block entity. To put it simply, a ticking entity is either a modded block, mob or animal which will cause your server to crash.
You can check to see if this is the issue by navigating to your server files, then click the crash-reports folder and view your most recent crash report. Don't be put off by all the complex info! We've got an example server with the ticking block entity issue below.
We've highlighted the line Description: Ticking block entity. Now we've confirmed that the issue is a ticking block entity, we can go ahead and fix it.
You may of not known but Forge has a setting which allows you to automatically remove entities which are erroring. The setting is disabled by default because it can cause some funky things to happen to your world. We recommend enable the setting as a one off just to fix the problem. Then once fixed, disable the setting and restart your server.
To enable the error fixing Forge setting, please follow these steps:
- Navigate to your server files and click the config folder.
- Scroll down until you find the file forge.cfg. Then edit the file with your favourite text editor.
- Scroll down until you find the settings removeErroringEntities and removeErroringTileEntities which we've highlighted below.
- Change both of the settings from false to true as shown below.
- Then simply save the file and restart your server. When your server starts, the new settings will take effect. When you next connect to your server and load the chunk with the ticking block entity, Forge will attempt to automatically remove the block which is causing issues.
- Once the problem has been fixed, we recommend changing the settings back to false to prevent any issues with your world.
Happy mining! ⛏️