• 0

    posted a message on java.lang.ExceptionInInitializer Error while registering ItemBlocks

    Removing @ObjectHolder fixed the crash. Thanks!

    Posted in: Modification Development
  • 0

    posted a message on java.lang.ExceptionInInitializer Error while registering ItemBlocks

    I tried that and I got an error on line 32:


    ---- Minecraft Crash Report ----
    // Oh - I know what I did wrong!
    
    Time: 7/19/17 3:30 PM
    Description: Initializing game
    
    java.lang.ExceptionInInitializerError
    	at com.hookoogold.testmod.proxy.CommonProxy.registerBlocks(CommonProxy.java:32)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_5_CommonProxy_registerBlocks_Register.invoke(.dynamic)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    	at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:143)
    	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:688)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:673)
    	at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:605)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:508)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:416)
    	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:26)
    Caused by: java.lang.NullPointerException
    	at com.hookoogold.testmod.block.ModBlocks.getItemBlock(ModBlocks.java:11)
    	at com.hookoogold.testmod.block.ModBlocks.<clinit>(ModBlocks.java:17)
    	... 24 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Thread: Client thread
    Stacktrace:
    	at com.hookoogold.testmod.proxy.CommonProxy.registerBlocks(CommonProxy.java:32)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_5_CommonProxy_registerBlocks_Register.invoke(.dynamic)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    	at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:143)
    	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:688)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:673)
    	at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:605)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:508)
    
    -- Initialization --
    Details:
    Stacktrace:
    	at net.minecraft.client.Minecraft.run(Minecraft.java:416)
    	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:26)
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12
    	Operating System: Linux (amd64) version 4.8.0-58-generic
    	Java Version: 1.8.0_131, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 841945976 bytes (802 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.40 Powered by Forge 14.21.1.2387 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
    	UCH	minecraft{1.12} [Minecraft] (minecraft.jar) 
    	UCH	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    	UCH	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.12-14.21.1.2387.jar) 
    	UCH	forge{14.21.1.2387} [Minecraft Forge] (forgeSrc-1.12-14.21.1.2387.jar) 
    	UCH	testmod{0.1} [Test Mod] (bin) 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'Intel Open Source Technology Center' Version: '3.0 Mesa 12.0.6' Renderer: 'Mesa DRI Intel(R) Sandybridge Mobile '
    	Launched Version: 1.12
    	LWJGL: 2.9.4
    	OpenGL: Mesa DRI Intel(R) Sandybridge Mobile  GL version 3.0 Mesa 12.0.6, Intel Open Source Technology Center
    	GL Caps: Using GL 1.3 multitexturing.
    Using GL 1.3 texture combiners.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Shaders are available because OpenGL 2.1 is supported.
    VBOs are available because OpenGL 1.5 is supported.
    
    	Using VBOs: Yes
    	Is Modded: Definitely; Client brand changed to 'fml,forge'
    	Type: Client (map_client.txt)
    	Resource Packs: 
    	Current Language: English (US)
    	Profiler Position: N/A (disabled)
    	CPU: 4x Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz


    Posted in: Modification Development
  • 0

    posted a message on java.lang.ExceptionInInitializer Error while registering ItemBlocks

    Whenever I run Minecraft, I always get an exception on a line that is part of a function call that registers ItemBlocks.


    Crash Report:


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(
    
    Time: 7/19/17 1:50 PM
    Description: Initializing game
    
    java.lang.ExceptionInInitializerError
    	at com.hookoogold.testmod.proxy.CommonProxy.registerItems(CommonProxy.java:39)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_6_CommonProxy_registerItems_Register.invoke(.dynamic)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    	at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:143)
    	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:693)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:673)
    	at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:605)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:508)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:416)
    	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:26)
    Caused by: java.lang.NullPointerException
    	at com.hookoogold.testmod.block.ModBlocks.getItemBlock(ModBlocks.java:11)
    	at com.hookoogold.testmod.block.ModBlocks.<clinit>(ModBlocks.java:17)
    	... 24 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Thread: Client thread
    Stacktrace:
    	at com.hookoogold.testmod.proxy.CommonProxy.registerItems(CommonProxy.java:39)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_6_CommonProxy_registerItems_Register.invoke(.dynamic)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    	at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:143)
    	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:693)
    	at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:673)
    	at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:605)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:266)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:508)
    
    -- Initialization --
    Details:
    Stacktrace:
    	at net.minecraft.client.Minecraft.run(Minecraft.java:416)
    	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:26)
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12
    	Operating System: Linux (amd64) version 4.8.0-58-generic
    	Java Version: 1.8.0_131, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 780211656 bytes (744 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.40 Powered by Forge 14.21.1.2387 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
    	UCH	minecraft{1.12} [Minecraft] (minecraft.jar) 
    	UCH	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    	UCH	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.12-14.21.1.2387.jar) 
    	UCH	forge{14.21.1.2387} [Minecraft Forge] (forgeSrc-1.12-14.21.1.2387.jar) 
    	UCH	testmod{0.1} [Test Mod] (bin) 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'Intel Open Source Technology Center' Version: '3.0 Mesa 12.0.6' Renderer: 'Mesa DRI Intel(R) Sandybridge Mobile '
    	Launched Version: 1.12
    	LWJGL: 2.9.4
    	OpenGL: Mesa DRI Intel(R) Sandybridge Mobile  GL version 3.0 Mesa 12.0.6, Intel Open Source Technology Center
    	GL Caps: Using GL 1.3 multitexturing.
    Using GL 1.3 texture combiners.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Shaders are available because OpenGL 2.1 is supported.
    VBOs are available because OpenGL 1.5 is supported.
    
    	Using VBOs: Yes
    	Is Modded: Definitely; Client brand changed to 'fml,forge'
    	Type: Client (map_client.txt)
    	Resource Packs: 
    	Current Language: English (US)
    	Profiler Position: N/A (disabled)
    	CPU: 4x Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz



    Code Files:

    com.hookoogold.testmod.proxy.CommonProxy

    com.hookoogold.testmod.blocks.ModBlocks

    Posted in: Modification Development
  • 0

    posted a message on What is your favorite OS?

    What is your favorite operating system to use?


    Mine is Ubuntu, because it's easy to do programming on, and it isn't as easy to infect as a Windows computer.

    Posted in: Computer Science and Technology
  • 0

    posted a message on complain about anything

    Adfly.

    Each time I go onto Adfly, there's always this stupid "Open Software Updater" ad that says your software is out of date. Then, when you download the executable and run it, it installs malware onto your computer. (Instant Support, PC Accelerate Pro, etc.) Found out from experience when I was a total idiot in this field.

    Posted in: General Off Topic
  • 0

    posted a message on What's a good programming language to learn?

    Python is really easy to learn and use.

    Posted in: Computer Science and Technology
  • 0

    posted a message on (Minecraft 1.2.5) Better Building mod 1.2.5

    It's easier to mod. :)

    Sorry about the crafting pictures; I'll fix them as soon as possible. The problem is fixed now.

    Posted in: WIP Mods
  • 0

    posted a message on (Minecraft 1.2.5) Better Building mod 1.2.5

    2017-04-18_16.41.33

    Better Building is a mod that adds more building blocks.

    Recipes


    (Sorry for the bad picture quality)

    Unrefined Basalt

    Unrefined Marble

    Normal Marble

    Chiselled Marble

    Marble Pillar

    Marble Bricks

    For every marble variant, there is a corresponding basalt variant.


    How to install


    1. Install Minecraft Forge for 1.2.5 and play
    2. Drag mod_BetterBuilding_0.1.zip into the .minecraft/mods folder
    3. Enjoy!

    Download Here!

    If that link doesn't work try this one.

    Posted in: WIP Mods
  • To post a comment, please or register a new account.