I have this great idea for a mod, and have a ton of pseudo-code waiting. I've begun the modding process, and have obtained the IC2 API, and am using Eclipse. I've managed to make a block, and a couple items with some basic recipes, but whenever I try to use an IC2 item( using for example: ItemStack waterCellStack = Items.getItem("waterCell"); ) in the recipe, the mod fails to initialize properly, and throws this:
java.lang.NullPointerException<br>at fk.a(CraftingManager.java:361)
at ModLoader.AddRecipe(ModLoader.java:368)
at mod_testMod.(mod_testMod .java:23)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at ModLoader.addMod(ModLoader.java:269)
at ModLoader.readFromModFolder(ModLoader.java:1305)
at ModLoader.init(ModLoader.java:820)
at ModLoader.AddAllRenderers(ModLoader.java:189)
at afq.(afq.java:80)<br>at afq.(afq.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:265)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Unknown Source)
Display More
I have been coding for years, but have never really dabbled in Java, and i'm wondering if my packaging is correct. It probably isn't :\
I've been looking for a concise guide on how to set up an IC2 mod from scratch, and have resorted to taking apart other peoples code to see how they did it. I know, it's bad, but I'm curious and want to learn.
Is there such a guide that I can follow to get an IC2 mod working?
I really think this mod will benefit the community, and is in no way a "god mod". I've done hours of calculations and testing within minecraft and how IC2 works its numbers and have make sure that the end result of this mod is in no way over powered, but actually quite challenging to get to, and keep up. I am reluctant to say exactly what this mod will be doing at the moment, as I would really like to be the one that releases it :p