Topic category: Troubleshooting, bugs, and solutions
I'm currently working on a mod based on dreams and nightmares. When I try to build my project it works, but it doesn't work when I test it. There are three groups of errors in the console when I try to run it and they're all similar to "java.lang.NullPointerException: Registry Object not present: dreams_and_nightmares:dreaming" (dreaming is a status effect in my mod). This error only seems to occur with that status effect and a flower I added (called a "dreamblossom"). How do I fix these errors?
First part of the error in console:
-- MOD dreams_and_nightmares --
Details:
Mod File: main
Failure message: Dreams and Nightmares (dreams_and_nightmares) encountered an error during the common_setup event phase
java.lang.NullPointerException: Registry Object not present: dreams_and_nightmares:dreaming
Mod Version: 1.0.0
Mod Issue URL: NOT PROVIDED
Exception message: java.lang.NullPointerException: Registry Object not present: dreams_and_nightmares:dreaming
EDIT: the bug is caused by applying a mod's effect to the suspicious stew of a modded flower. The only way I can seem to fix the error is by changing the effect to a non-modded one.
Looks like a problem with the Suspicious Stew. Apparently assigning a modded effect to a suspicious stew breaks MCreator mods. Regardless, I can change the effect, so this is solved enough for me, but I'll leave this here since this is definitely a bug.