In Game Crash Reports - 04Slash/Breaking-Down-Minecraft-Forge-Crash-Reports GitHub Wiki
Ingame Crash reports
This page will use this crash report as a reference.
It is a lot easier to fix crashes during the modloading stage since the amount of things that can go wrong is very small and usually easily fixed. The moment you get ingame, the amount of issues that could cause a crash greatly increases and can be time consuming to figure out the exact cause.
In the top 3 red boxes we can gather some basic information. We can see the 2 mods involved are mobsunscreen
and whisperwoods
. Usually with "Ticking Entity | Block" crashes we can use Forge's config files to remove erroring entities and tile entities to fix it. You should create a backup before doing this as the results may not be ideal. The Forge config is located within the config folder in 1.12, and within the saves/world/serverconfigs folder in newer versions.
However, those settings will not fix this issue. We can look further into the 2 lines in the stacktrace, com.kreezcraft.mobsunscreen.DamnSun.entityUpdate(DamnSun.java:24)
and dev.itsmeow.whisperwoods.entity.EntityMoth.func_70071_h_(EntityMoth.java:102)
to try and figure out the issue. We can see that MobSunScreen is updating an entity, and that entity is a Moth from Whisperwoods. The configs of MobSunScreen allows for config options to blacklist mobs and entire mods to prevent these kinds of issues.
However, upon further testing these config options didn't work. This is an issue that happens when using a java version that isn't Java 8 (or, specifically when using Java 14). I'm not a developer so I can't go into further detail as to why this would happen, however at this point you would either revert back to using java 8, or report the bug to the mod dev so they can look into fixing it. Ideally, you should report the issue either way!
In the event that another issue is present and the Forge settings don't fix the issue, then we can get the exact entity location in the green box at the bottom. Here we will have to use third party applications such as McEdit Unified (1.12 and older), Amulet (1.16 and older), or NBT Explorer (should work on all versions). The very first step you should take it making a backup. These programs can severely break your world. McEdit Unified and Amulet are both programs that will allow you to see a 3d preview of what you are doing (as if you were actually ingame). However, these mods were not made to support modded and therefor you won't see modded blocks as actual textures, but a 'black and purple missing texture'. Amulet is also very early and may break your world, so make a backup before using.
NBT Explorer is a little tougher to use since you don't have any visuals to go along with what you're doing. You will be editing region files (r.0.0.mca
) directly (found within saves/world/region). This should go over how to do that.