Jump to content

[1.7.10] Minecraft Crashing [Solved]


Boulder42

Recommended Posts

Like the title says, I updated to 1.7.10, but now it is crashing

 

[16:00:09] [main/INFO] [GradleStart]: Extra: []

[16:00:09] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, /Users/NathanMartin/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[16:00:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[16:00:09] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[16:00:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:00:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[16:00:09] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1230 for Minecraft 1.7.10 loading

[16:00:09] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_60, running on Mac OS X:x86_64:10.10.1, installed at /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre

[16:00:09] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[16:00:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:00:09] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[16:00:09] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[16:00:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:00:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[16:00:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:00:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:00:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:00:10] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[16:00:10] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[16:00:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:00:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[16:00:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[16:00:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[16:00:11] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[16:00:13] [main/INFO]: Setting user: Player837

[16:00:14] [Client thread/INFO]: LWJGL Version: 2.9.1

[16:00:15] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[16:00:15] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1230 Initialized

[16:00:15] [Client thread/INFO] [FML]: Replaced 182 ore recipies

[16:00:15] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[16:00:15] [Client thread/INFO] [FML]: Searching /Users/NathanMartin/Desktop/MoarModding/CraftofLegends/eclipse/mods for mods

[16:00:15] [Client thread/INFO] [CraftofLegends]: Mod CraftofLegends is missing the required element 'name'. Substituting CraftofLegends

[16:00:18] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[16:00:18] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, CraftofLegends] at CLIENT

[16:00:18] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, CraftofLegends] at SERVER

[16:00:18] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:CraftofLegends

[16:00:19] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[16:00:19] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[16:00:19] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[16:00:19] [Client thread/ERROR] [FML]: Caught an exception during block registration

java.lang.NullPointerException: Can't add null-object to the registry, name CraftofLegends:CrystalOre.

at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:357) ~[FMLControlledNamespacedRegistry.class:?]

at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:883) ~[GameData.class:?]

at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:858) ~[GameData.class:?]

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:223) [GameRegistry.class:?]

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) [GameRegistry.class:?]

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) [GameRegistry.class:?]

at net.craftoflegends.mod.CraftofLegends.PreInit(CraftofLegends.java:115) [CraftofLegends.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) [FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) [LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) [LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[16:00:19] [Client thread/INFO] [FML]: Applying holder lookups

[16:00:19] [Client thread/INFO] [FML]: Holder lookups applied

[16:00:19] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

[16:00:19] [Client thread/ERROR] [FML]:

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized

Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized

CraftofLegends{0.0.1} [CraftofLegends] (bin) Unloaded->Constructed->Errored

[16:00:19] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[16:00:19] [Client thread/ERROR] [FML]: Caught exception from CraftofLegends

cpw.mods.fml.common.LoaderException: java.lang.NullPointerException: Can't add null-object to the registry, name CraftofLegends:CrystalOre.

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:233) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at net.craftoflegends.mod.CraftofLegends.PreInit(CraftofLegends.java:115) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

Caused by: java.lang.NullPointerException: Can't add null-object to the registry, name CraftofLegends:CrystalOre.

at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:357) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:883) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:858) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:223) ~[forgeSrc-1.7.10-10.13.2.1230.jar:?]

... 42 more

[16:00:19] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// Hi. I'm Minecraft, and I'm a crashaholic.

 

Time: 1/26/15 4:00 PM

Description: There was a severe problem during mod loading that has caused the game to fail

 

cpw.mods.fml.common.LoaderException: java.lang.NullPointerException: Can't add null-object to the registry, name CraftofLegends:CrystalOre.

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:233)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171)

at net.craftoflegends.mod.CraftofLegends.PreInit(CraftofLegends.java:115)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

at net.minecraft.client.Minecraft.run(Minecraft.java:931)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)

at GradleStart.main(GradleStart.java:45)

Caused by: java.lang.NullPointerException: Can't add null-object to the registry, name CraftofLegends:CrystalOre.

at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:357)

at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:883)

at cpw.mods.fml.common.registry.GameData.registerBlock(GameData.java:858)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:223)

... 42 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Mac OS X (x86_64) version 10.10.1

Java Version: 1.7.0_60, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 694383720 bytes (662 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized

Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized

CraftofLegends{0.0.1} [CraftofLegends] (bin) Unloaded->Constructed->Errored

[16:00:19] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# /Users/NathanMartin/Desktop/MoarModding/CraftofLegends/eclipse/./crash-reports/crash-2015-01-26_16.00.19-client.txt

 

Eclipse doesn't say I have any errors, so I don't know what is wrong.

Link to comment
Share on other sites

Check your pre-init event handler, line 115. You're trying to register null as block. Minecraft doesn't like that.

 

Eclipse doesn't know the method does not allow null objects as parameters. Of course it wouldn't show you any errors. It only highlights syntax errors and unreachable code (like while(false){...}), but it can't help flawed logic. That's up to you as the programmer.

 

Darn it. Too slow.

Link to comment
Share on other sites

This is what I have line 115

 

GameRegistry.registerBlock(oreCrystalOre, "CrystalOre");

 

heres what surrounds it

 

GameRegistry.registerBlock(oreCopperOre, "CopperOre");

GameRegistry.registerBlock(oreCrystalOre, "CrystalOre");

GameRegistry.registerBlock(oreManganeseOre, "ManganeseOre");

GameRegistry.registerBlock(orePainiteOre, "PainiteOre");

GameRegistry.registerBlock(oreTinOre, "TinOre");

GameRegistry.registerBlock(oreVaniteOre, "VaniteOre");

 

It doesn't seem to be out of the ordinary.

Link to comment
Share on other sites

Here I'll just show you the whole thing

 

Not sure where I messed up

 

package net.craftoflegends.mod;

 

import net.craftoflegends.mod.blocks.BronzeBlock;

import net.craftoflegends.mod.blocks.CopperBlock;

import net.craftoflegends.mod.blocks.CopperOre;

import net.craftoflegends.mod.blocks.CrystalBlock;

import net.craftoflegends.mod.blocks.CrystalOre;

import net.craftoflegends.mod.blocks.ManganeseBlock;

import net.craftoflegends.mod.blocks.ManganeseOre;

import net.craftoflegends.mod.blocks.PainiteBlock;

import net.craftoflegends.mod.blocks.PainiteOre;

import net.craftoflegends.mod.blocks.SteelBlock;

import net.craftoflegends.mod.blocks.TinBlock;

import net.craftoflegends.mod.blocks.TinOre;

import net.craftoflegends.mod.blocks.VaniteBlock;

import net.craftoflegends.mod.blocks.VaniteOre;

import net.craftoflegends.mod.items.COLItems;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

 

 

@Mod(modid = CraftofLegends.modid, version = CraftofLegends.version)

public class CraftofLegends {

 

public static final String modid = "CraftofLegends";

public static final String version = "0.0.1";

 

public static CreativeTabs craftoflegendsTab;

 

//Items

public static Item itemBronzeIngot;

public static Item itemCopperIngot;

public static Item itemCrystalShard;

public static Item itemManganeseIngot;

public static Item itemPainisteelIngot;

public static Item itemPainiteGem;

public static Item itemSteelIngot;

public static Item itemTinIngot;

public static Item itemVanisteelIngot;

public static Item itemVaniteGem;

 

//Blocks

public static Block oreCopperOre;

public static Block oreCrystalOre;

public static Block oreManganeseOre;

public static Block orePainiteOre;

public static Block oreTinOre;

public static Block oreVaniteOre;

 

public static Block blockCopperBlock;

public static Block blockBronzeBlock;

public static Block blockCrystalBlock;

public static Block blockManganeseBlock;

public static Block blockPainiteBlock;

public static Block blockSteelBlock;

public static Block blockTinBlock;

public static Block blockVaniteBlock;

 

@EventHandler

public void PreInit(FMLPreInitializationEvent preEvent){

 

craftoflegendsTab = new CreativeTabs("Craft of Legends") {

@SideOnly(Side.CLIENT)

public Item getTabIconItem() {

return Item.getItemFromBlock(CraftofLegends.oreCopperOre);

}

};

 

//Names

 

//Blocks

oreCopperOre = new CopperOre(Material.rock).setBlockName("CopperOre");

oreCopperOre = new CrystalOre(Material.rock).setBlockName("CrystalOre");

oreCopperOre = new ManganeseOre(Material.rock).setBlockName("ManganeseOre");

oreCopperOre = new PainiteOre(Material.rock).setBlockName("PainiteOre");

oreCopperOre = new TinOre(Material.rock).setBlockName("TinOre");

oreCopperOre = new VaniteOre(Material.rock).setBlockName("VaniteOre");

 

blockCopperBlock = new CopperBlock(Material.iron).setBlockName("CopperBlock");

blockCopperBlock = new BronzeBlock(Material.iron).setBlockName("BronzeBlock");

blockCopperBlock = new CrystalBlock(Material.iron).setBlockName("CrystalBlock");

blockCopperBlock = new ManganeseBlock(Material.iron).setBlockName("ManganeseBlock");

blockCopperBlock = new PainiteBlock(Material.iron).setBlockName("PainiteBlock");

blockCopperBlock = new SteelBlock(Material.iron).setBlockName("SteelBlock");

blockCopperBlock = new TinBlock(Material.iron).setBlockName("TinBlock");

blockCopperBlock = new VaniteBlock(Material.iron).setBlockName("VaniteBlock");

 

//Items

itemBronzeIngot = new COLItems().setUnlocalizedName("BronzeIngot");

itemCopperIngot = new COLItems().setUnlocalizedName("CopperIngot");

itemCrystalShard = new COLItems().setUnlocalizedName("CrystalShard");

itemManganeseIngot = new COLItems().setUnlocalizedName("ManganeseIngot");

itemPainisteelIngot = new COLItems().setUnlocalizedName("PainisteelIngot");

itemPainiteGem = new COLItems().setUnlocalizedName("PainiteGem");

itemSteelIngot = new COLItems().setUnlocalizedName("SteelIngot");

itemTinIngot = new COLItems().setUnlocalizedName("TinIngot");

itemVanisteelIngot = new COLItems().setUnlocalizedName("VanisteelIngot");

itemVaniteGem = new COLItems().setUnlocalizedName("VaniteGem");

 

//Registry

 

//Blocks

GameRegistry.registerBlock(oreCopperOre, "CopperOre");

GameRegistry.registerBlock(oreCrystalOre, "CrystalOre");

GameRegistry.registerBlock(oreManganeseOre, "ManganeseOre");

GameRegistry.registerBlock(orePainiteOre, "PainiteOre");

GameRegistry.registerBlock(oreTinOre, "TinOre");

GameRegistry.registerBlock(oreVaniteOre, "VaniteOre");

 

GameRegistry.registerBlock(blockCopperBlock, "CopperBlock");

GameRegistry.registerBlock(blockBronzeBlock, "BronzeBlock");

GameRegistry.registerBlock(blockCrystalBlock, "CrystalBlock");

GameRegistry.registerBlock(blockManganeseBlock, "ManganeseBlock");

GameRegistry.registerBlock(blockPainiteBlock, "PainiteBlock");

GameRegistry.registerBlock(blockSteelBlock, "SteelBlock");

GameRegistry.registerBlock(blockTinBlock, "TinBlock");

GameRegistry.registerBlock(blockVaniteBlock, "VaniteBlock");

 

 

//Items

GameRegistry.registerItem(itemBronzeIngot, "BronzeIngot");

GameRegistry.registerItem(itemCopperIngot, "CopperIngot");

GameRegistry.registerItem(itemCrystalShard, "CrystalShard");

GameRegistry.registerItem(itemManganeseIngot, "ManganeseIngot");

GameRegistry.registerItem(itemPainisteelIngot, "PainisteelIngot");

GameRegistry.registerItem(itemPainiteGem, "PainiteGem");

GameRegistry.registerItem(itemSteelIngot, "SteelIngot");

GameRegistry.registerItem(itemTinIngot, "TinIngot");

GameRegistry.registerItem(itemVanisteelIngot, "VanisteelIngot");

GameRegistry.registerItem(itemVaniteGem, "VaniteGem");

 

}

 

@EventHandler

public void Init(FMLInitializationEvent event){

 

}

 

@EventHandler

public void PostInit(FMLPostInitializationEvent postEvent){

 

}

 

}

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • It is a dupe mod issue Remove Rubidium - you are already using Embeddium which is a fork of Rubidium
    • I made a block entity in forge 1.20.1, I want to prevent hopper from taking input slot item, i tried to override the extractItem method, it prevented hopper from taking input slot item, but the player also unable to take/change the item in input slot unless the slot is empty. public class FluidSeparatorBlockEntity extends BlockEntity implements MenuProvider { private static final int INPUT_SLOT = 0; private final CustomItemHandler itemHandler = new CustomItemHandler(3){ @Override protected void onContentsChanged(int slot) { setChanged(); } @Override public boolean isItemValid(int slot, @NotNull ItemStack stack) { return slot == INPUT_SLOT; } @Override public @NotNull ItemStack extractItem(int slot, int amount, boolean simulate) { if (slot == INPUT_SLOT) { return ItemStack.EMPTY; } return super.extractItem(slot, amount, simulate); } }; private LazyOptional<IItemHandler> lazyItemHandler = LazyOptional.empty(); protected final ContainerData data; private int progress = 0; private int maxProgress = 78; public FluidSeparatorBlockEntity(BlockPos pPos, BlockState pBlockState) { super(ModBlockEntities.FLUID_SEPARATOR_BE.get(), pPos, pBlockState); this.data = new ContainerData() { @Override public int get(int pIndex) { return switch (pIndex) { case 0 -> FluidSeparatorBlockEntity.this.progress; case 1, 2 -> FluidSeparatorBlockEntity.this.maxProgress; default -> 0; }; } @Override public void set(int pIndex, int pValue) { switch (pIndex) { case 0 -> FluidSeparatorBlockEntity.this.progress = pValue; case 1, 2 -> FluidSeparatorBlockEntity.this.maxProgress = pValue; } } @Override public int getCount() { return 3; } }; } @Override public @NotNull <T> LazyOptional<T> getCapability(@NotNull Capability<T> cap, @Nullable Direction side) { if(cap == ForgeCapabilities.ITEM_HANDLER) { return lazyItemHandler.cast(); } return super.getCapability(cap, side); } @Override public void onLoad() { super.onLoad(); lazyItemHandler = LazyOptional.of(() -> itemHandler); } @Override public void invalidateCaps() { super.invalidateCaps(); lazyItemHandler.invalidate(); } public void drops() { SimpleContainer inventory = new SimpleContainer(itemHandler.getSlots()); for(int i = 0; i < itemHandler.getSlots(); i++) { inventory.setItem(i, itemHandler.getStackInSlot(i)); } Containers.dropContents(this.level, this.worldPosition, inventory); } @Override public Component getDisplayName() { return Component.translatable("block.chemmaster.fluid_separator"); } @Nullable @Override public AbstractContainerMenu createMenu(int pContainerId, Inventory pPlayerInventory, Player pPlayer) { return new FluidSeparatorMenu(pContainerId, pPlayerInventory, this, this.data); } @Override protected void saveAdditional(CompoundTag pTag) { pTag.put("inventory", itemHandler.serializeNBT()); pTag.putInt("fluid_separator.progress", progress); super.saveAdditional(pTag); } @Override public void load(CompoundTag pTag) { super.load(pTag); itemHandler.deserializeNBT(pTag.getCompound("inventory")); progress = pTag.getInt("fluid_separator.progress"); } public void tick(Level pLevel, BlockPos pPos, BlockState pState) { ItemStack inputStack = this.itemHandler.getStackInSlot(INPUT_SLOT); if (inputStack.getCount() < 2) { resetProgress(); return; } if(hasRecipe()) { increaseCraftingProgress(); setChanged(pLevel, pPos, pState); if(hasProgressFinished()) { craftItem(); resetProgress(); } } else { resetProgress(); } } private void resetProgress() { progress = 0; } private void craftItem() { Optional<FluidSeparatingRecipe> recipe = getCurrentRecipe(); if (recipe.isPresent()) { List<ItemStack> results = recipe.get().getOutputs(); ItemStack inputStack = this.itemHandler.getStackInSlot(INPUT_SLOT); if (inputStack.getCount() < 2) { // If there are not enough items, do not proceed with crafting return; } // Extract the input item from the input slot this.itemHandler.internalExtractItem(INPUT_SLOT, 2, false); // Loop through each result item and find suitable output slots for (ItemStack result : results) { int outputSlot = findSuitableOutputSlot(result); if (outputSlot != -1) { this.itemHandler.setStackInSlot(outputSlot, new ItemStack(result.getItem(), this.itemHandler.getStackInSlot(outputSlot).getCount() + result.getCount())); } else { // Handle the case where no suitable output slot is found // This can be logging an error, throwing an exception, or any other handling logic System.err.println("No suitable output slot found for item: " + result); } } } } private int findSuitableOutputSlot(ItemStack result) { // Implement logic to find a suitable output slot for the given result // Return the slot index or -1 if no suitable slot is found for (int i = 0; i < this.itemHandler.getSlots(); i++) { // Ensure we do not place the output item in the input slot if (i == INPUT_SLOT) { continue; } ItemStack stackInSlot = this.itemHandler.getStackInSlot(i); if (stackInSlot.isEmpty() || (stackInSlot.getItem() == result.getItem() && stackInSlot.getCount() + result.getCount() <= stackInSlot.getMaxStackSize())) { return i; } } return -1; } private boolean hasRecipe() { Optional<FluidSeparatingRecipe> recipe = getCurrentRecipe(); if (recipe.isEmpty()) { return false; } List<ItemStack> results = recipe.get().getOutputs(); for (ItemStack result : results) { if (!canInsertAmountIntoOutputSlot(result) || !canInsertItemIntoOutputSlot(result.getItem())) { return false; } } return true; } private Optional<FluidSeparatingRecipe> getCurrentRecipe(){ SimpleContainer inventory = new SimpleContainer(this.itemHandler.getSlots()); for (int i = 0; i < itemHandler.getSlots(); i++) { inventory.setItem(i, this.itemHandler.getStackInSlot(i)); } return this.level.getRecipeManager().getRecipeFor(FluidSeparatingRecipe.Type.INSTANCE, inventory, level); } private boolean canInsertAmountIntoOutputSlot(ItemStack result) { for (int i = 1; i < this.itemHandler.getSlots(); i++) { ItemStack stackInSlot = this.itemHandler.getStackInSlot(i); if (stackInSlot.isEmpty() || (stackInSlot.getItem() == result.getItem() && stackInSlot.getCount() + result.getCount() <= stackInSlot.getMaxStackSize())) { return true; } } return false; } private boolean canInsertItemIntoOutputSlot(Item item) { for (int i = 1; i < this.itemHandler.getSlots(); i++) { ItemStack stackInSlot = this.itemHandler.getStackInSlot(i); if (stackInSlot.isEmpty() || stackInSlot.getItem() == item) { return true; } } return false; } private boolean hasProgressFinished() { return progress >= maxProgress; } private void increaseCraftingProgress() { progress++; } }  
    • No dice. Unfortunately this fix didn't work, thank you though.
    • Maybe you need a rayon mod. https://www.curseforge.com/minecraft/mc-mods/rayon
    • Not sure what's going on the logs are making even less sense than usual to me. Any help would be much appreciated.   https://paste.ee/p/KBHyP#s=0
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.