My mod immediately crashes when I test

Status
Fixed
Type
Product/platform
Not applicable
Priority
Normal
Issue description

Whenever I try to run my mod test in MCreator forge loads, immediately crashes and I get this error message, I appreciate any help I can get. I will also provide the .mcr file if anyone wants to do further digging.

 

[11:14:54] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, testenvironmentmod] at SERVER [11:14:57] [main/FATAL] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue [11:14:57] [main/FATAL] [FML]:     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored    | State | ID                 | Version      | Source                           | Signature |    |:----- |:------------------ |:------------ |:-------------------------------- |:--------- |    | UC    | minecraft          | 1.12.2       | minecraft.jar                    | None      |    | UC    | mcp                | 9.42         | minecraft.jar                    | None      |    | UC    | FML                | 8.0.99.99    | forgeSrc-1.12.2-14.23.2.2611.jar | None      |    | UC    | forge              | 14.23.2.2611 | forgeSrc-1.12.2-14.23.2.2611.jar | None      |    | UE    | testenvironmentmod | 1.0          | modid-1.0.jar                    | None      | [11:14:57] [main/FATAL] [FML]: The following problems were captured during this phase [11:14:57] [main/ERROR] [FML]: Caught exception from testenvironmentmod (testenvironmentmod) java.lang.ExceptionInInitializerError: null    at mod.mcreator.TestEnvironmentMod. (TestEnvironmentMod.java:219) ~[modid-1.0.jar:?]    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_152]    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_152]    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_152]    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_152]    at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_152]    at net.minecraftforge.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:193) ~[forgeSrc-1.12.2-14.23.2.2611.jar:?]    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:579) ~[forgeSrc-1.12.2-14.23.2.2611.jar:?]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[guava-21.0.jar:?]    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[guava-21.0.jar:?]    at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[guava-21.0.jar:?]    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:278) ~[LoadController.class:?]    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:256) [LoadController.class:?]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[guava-21.0.jar:?]    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[guava-21.0.jar:?]    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[guava-21.0.jar:?]    at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[guava-21.0.jar:?]    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) [LoadController.class:?]    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:568) [Loader.class:?]    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:231) [FMLClientHandler.class:?]    at net.minecraft.client.Minecraft.init(Minecraft.java:513) [Minecraft.class:?]    at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]    at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.lang.NullPointerException    at mod.mcreator.mcreator_moche$BiomeGenmoche. (mcreator_moche.java:69) ~[mcreator_moche$BiomeGenmoche.class:?]    at mod.mcreator.mcreator_moche. (mcreator_moche.java:30) ~[mcreator_moche.class:?]    ... 50 more [11:14:57] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen. Time: 8/17/18 11:14 AM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from testenvironmentmod (testenvironmentmod) Caused by: java.lang.ExceptionInInitializerError    at mod.mcreator.TestEnvironmentMod. (TestEnvironmentMod.java:219)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)    at java.lang.Class.newInstance(Class.java:442)    at net.minecraftforge.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:193)    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:579)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)    at com.google.common.eventbus.EventBus.post(EventBus.java:217)    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:278)    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:256)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)    at com.google.common.eventbus.EventBus.post(EventBus.java:217)    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148)    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:568)    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:231)    at net.minecraft.client.Minecraft.init(Minecraft.java:513)    at net.minecraft.client.Minecraft.run(Minecraft.java:421)    at net.minecraft.client.main.Main.main(Main.java:118)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)    at GradleStart.main(GradleStart.java:25) Caused by: java.lang.NullPointerException    at mod.mcreator.mcreator_moche$BiomeGenmoche. (mcreator_moche.java:69)    at mod.mcreator.mcreator_moche. (mcreator_moche.java:30)    ... 50 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:    Minecraft Version: 1.12.2    Operating System: Windows 10 (amd64) version 10.0    Java Version: 1.8.0_152, Oracle Corporation    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation    Memory: 265318976 bytes (253 MB) / 488112128 bytes (465 MB) up to 937951232 bytes (894 MB)    JVM Flags: 0 total;     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0    FML: MCP 9.42 Powered by Forge 14.23.2.2611 5 mods loaded, 5 mods active    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored    | State | ID                 | Version      | Source                           | Signature |    |:----- |:------------------ |:------------ |:-------------------------------- |:--------- |    | UC    | minecraft          | 1.12.2       | minecraft.jar                    | None      |    | UC    | mcp                | 9.42         | minecraft.jar                    | None      |    | UC    | FML                | 8.0.99.99    | forgeSrc-1.12.2-14.23.2.2611.jar | None      |    | UC    | forge              | 14.23.2.2611 | forgeSrc-1.12.2-14.23.2.2611.jar | None      |    | UE    | testenvironmentmod | 1.0          | modid-1.0.jar                    | None      |    Loaded coremods (and transformers):     GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4627' Renderer: 'Intel(R) HD Graphics 520' [11:14:57] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\johns\Desktop\MCreator179\forge\run\.\crash-reports\crash-2018-08-17_11.14.57-client.txt :runClient FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':runClient'. > Process 'command 'C:\Users\Censored for privacy\Desktop\MCreator179\jdk\bin\java.exe'' finished with non-zero exit value -1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 1 mins 22.771 secs C:\Users\johns\Desktop\MCreator179\forge> Task completed with return code 0 in 83823 milliseconds 

 

Attachment Size
Mod .mcr file1.51 MB 1.51 MB

Issue comments

I was able to replicate this bug. I can't provide you a way to fix this right now, but I will fix this bug in 1.8.0. It has to do with using the fluid block in custom biomes. In moche biome, you used custom fluid and this causes the crash in 1.7.9 it seems.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.