2FastAssassin Posted June 24, 2015 Posted June 24, 2015 I've just gone through and renamed all my items (just removed item from eg'itemdragongem' to make 'dragongem') and I dont know whats causing it to crash. it says something about where my items are registered but its exactly how it should be Crash Report: ---- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem. Time: 24/06/15 12:17 PM Description: Initializing game java.lang.NullPointerException: Initializing game at wearethewarriorsmod.items.ItemClass.registerItem(ItemClass.java:400) at wearethewarriorsmod.items.ItemClass.mainRegistry(ItemClass.java:30) at wearethewarriorsmod.WeAreTheWarriorsMod.preInit(WeAreTheWarriorsMod.java:209) 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:483) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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:483) 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at wearethewarriorsmod.items.ItemClass.registerItem(ItemClass.java:400) at wearethewarriorsmod.items.ItemClass.mainRegistry(ItemClass.java:30) at wearethewarriorsmod.WeAreTheWarriorsMod.preInit(WeAreTheWarriorsMod.java:209) 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:483) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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:483) 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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) -- Initialization -- Details: Stacktrace: 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation Memory: 907403384 bytes (865 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized watwm{1.1.0} [We Are The Warriors] (bin) Unloaded->Constructed->Errored Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: ATI Radeon 3000 Graphics GL version 3.3.10750 Compatibility Profile Context, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. 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) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) ItemClass: package wearethewarriorsmod.items; import wearethewarriorsmod.WeAreTheWarriorsMod; import wearethewarriorsmod.bow.burntarrow; import wearethewarriorsmod.bow.corruptedbow; import wearethewarriorsmod.bow.flamebow; import wearethewarriorsmod.item.ItemAncientsword; import wearethewarriorsmod.item.ItemDragonsword; import wearethewarriorsmod.item.ItemSwordofcorruptedsouls; import wearethewarriorsmod.item.Itemancientarmor; import wearethewarriorsmod.item.Itemchosenarmor; import wearethewarriorsmod.item.Itemdragonarmor; import wearethewarriorsmod.item.Itemearthsword; import wearethewarriorsmod.item.Itemladyarmor; import wearethewarriorsmod.item.ItemsoulArmor; import wearethewarriorsmod.item.Itemsoulsword; import wearethewarriorsmod.item.earthArmor; import wearethewarriorsmod.item.ladystaff; import wearethewarriorsmod.item.swordofthechosenone; import wearethewarriorsmod.tools.dragonpickaxe; import wearethewarriorsmod.tools.earthpickaxe; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraftforge.common.util.EnumHelper; public class ItemClass { public static void mainRegistry() { registerItem(); initualiseItem(); } // Items public static Item corruptedsoulgem; public static Item soulshard; public static Item dragonrod; public static Item flamedust; public static Item corruptedsoul; public static Item flamegem; public static Item blazeshard; public static Item burntstring; public static Item corruptedsoulrod; public static Item corruptedstring; public static Item earthshard; public static Item hollowgem; public static Item earthgem; public static Item pureelementalgem; public static Item puresoulgem; public static Item soulrod; public static Item sharpiron; public static Item heartshard; public static Item crystalheart; public static Item quartzgem; public static Item quartzrod; public static Item ironrod; // Tools & Weapons public static Item swordofcorruptedsouls; public static Item dragonsword; public static Item ancientsword; public static Item swordofthechosenone; public static Item earthsword; public static Item soulsword; public static Item ladystaff; public static Item flamebow; public static Item corruptedbow; public static Item burntarrow; public static Item corruptedarrow; public static Item dragonpickaxe; public static Item earthpickaxe; // Armor public static Item corruptedhelmet; public static Item corruptedchestplate; public static Item corruptedleggings; public static Item corruptedboots; public static Item dragonhelmet; public static Item dragonchestplate; public static Item dragonleggings; public static Item dragonboots; public static Item ancienthelmet; public static Item ancientchestplate; public static Item ancientleggings; public static Item ancientboots; public static Item chosenhelmet; public static Item chosenchestplate; public static Item chosenleggings; public static Item chosenboots; public static Item soulhelmet; public static Item soulchestplate; public static Item soulleggings; public static Item soulboots; public static Item earthhelmet; public static Item earthchestplate; public static Item earthleggings; public static Item earthboots; public static Item ladyhelmet; public static Item ladychestplate; public static Item ladyleggings; public static Item ladyboots; // ToolMaterial public static final Item.ToolMaterial soulToolMaterial = EnumHelper .addToolMaterial("soulToolMaterial", 0, 2000, 1.0F, 19.0F, 0); public static final Item.ToolMaterial chosenToolMaterial = EnumHelper .addToolMaterial("chosenToolMaterial", 0, -1, 1.0F, 120.0F, 0); public static final Item.ToolMaterial corruptedToolMaterial = EnumHelper .addToolMaterial("corruptedToolMaterial", 0, 3000, 1.0F, 28.0F, 0); public static final Item.ToolMaterial earthSwordMaterial = EnumHelper .addToolMaterial("earthSwordMaterial", 0, 4000, 1.0F, 10.0F, 0); public static final Item.ToolMaterial earthToolMaterial = EnumHelper .addToolMaterial("earthToolMaterial", 3, 4000, 8.0F, 2.0F, 0); public static final Item.ToolMaterial dragonSwordMaterial = EnumHelper .addToolMaterial("dragonSwordMaterial", 0, 2000, 1.0F, 20.0F, 0); public static final Item.ToolMaterial dragonToolMaterial = EnumHelper .addToolMaterial("dragonToolMaterial", 3, 2000, 16.0F, 2.0F, 0); public static final Item.ToolMaterial ancientToolMaterial = EnumHelper .addToolMaterial("ancientToolMaterial", 0, 40, 0.0F, 0.0F, 0); public static final Item.ToolMaterial ladyToolMaterial = EnumHelper .addToolMaterial("ladyToolMaterial", 1, -1, 1.0F, 29.5F, 0); // ArmorMaterial public static final ItemArmor.ArmorMaterial ladyArmorMaterial = EnumHelper .addArmorMaterial("ladyArmorMaterial", -1, new int[] { 3, 11, 7, 2 }, 0); public static final ItemArmor.ArmorMaterial soulArmorMaterial = EnumHelper .addArmorMaterial("soulArmorMaerial", 3000, new int[] { 8, 17, 11, 7 }, 0); public static final ItemArmor.ArmorMaterial earthArmorMaterial = EnumHelper .addArmorMaterial("earthArmorMaerial", 6000, new int[] { 9, 20, 13, 8 }, 0); public static final ItemArmor.ArmorMaterial chosenArmorMaterial = EnumHelper .addArmorMaterial("chosenArmorMaterial", -1, new int[] { 25, 45, 30, 20 }, 0); public static final ItemArmor.ArmorMaterial corruptedArmorMaterial = EnumHelper .addArmorMaterial("corruptedArmorMaterial", 10000, new int[] { 10, 25, 16, 9 }, 0); public static final ItemArmor.ArmorMaterial dragonArmorMaterial = EnumHelper .addArmorMaterial("dragonArmorMaterial", 5500, new int[] { 8, 15, 10, 6 }, 0); public static final ItemArmor.ArmorMaterial ancientArmorMaterial = EnumHelper .addArmorMaterial("ancientArmorMaterial", 100, new int[] { 1, 2, 2, 1 }, 0); public static void initualiseItem() { corruptedsoulgem = new corruptedsoulgem() .setUnlocalizedName("corruptedsoulgem") .setTextureName("watwm:corrupted_soul_gem") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); soulshard = new soulshard().setUnlocalizedName("soulshard") .setTextureName("watwm:soul_shard") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); dragonrod = new dragonrod().setUnlocalizedName("dragonrod") .setTextureName("watwm:dragon_rod") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); flamedust = new flamedust().setUnlocalizedName("flamedust") .setTextureName("watwm:flame_dust") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedsoul = new corruptedsoul().setUnlocalizedName("corruptedsoul") .setTextureName("watwm:corrupted_soul") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); flamegem = new flamegem().setUnlocalizedName("flamegem") .setTextureName("watwm:flame_gem") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); blazeshard = new blazeshard().setUnlocalizedName("blazeshard") .setTextureName("watwm:blaze_shard") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); burntstring = new burntstring().setUnlocalizedName("burntstring") .setTextureName("watwm:burning_string") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedsoulrod = new corruptedsoulrod() .setUnlocalizedName("corruptedsoulrod") .setTextureName("watwm:corrupted_soul_rod") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedstring = new corruptedstring() .setUnlocalizedName("corruptedstring") .setTextureName("watwm:corrupted_string") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthshard = new earthshard().setUnlocalizedName("earthshard") .setTextureName("watwm:earth_shard") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); hollowgem = new hollowgem().setUnlocalizedName("hollowgem") .setTextureName("watwm:hollow_gem") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthgem = new earthgem().setUnlocalizedName("earthgem") .setTextureName("watwm:earth_gem") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); pureelementalgem = new pureelementalgem() .setUnlocalizedName("pureelementalgem") .setTextureName("watwm:pure_elemental_gem") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); puresoulgem = new puresoulgem().setUnlocalizedName("puresoulgem") .setTextureName("watwm:pure_soul_gem") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); soulrod = new soulrod().setUnlocalizedName("soulrod") .setTextureName("watwm:soul_rod") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); sharpiron = new sharpiron().setUnlocalizedName("sharpiron") .setTextureName("watwm:sharp_iron") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); heartshard = new heartshard().setUnlocalizedName("heartshard") .setTextureName("watwm:heart_shard") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); crystalheart = new crystalheart().setUnlocalizedName("crystalheart") .setTextureName("watwm:crystal_heart") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); quartzgem = new quartzgem().setUnlocalizedName("quartzgem") .setTextureName("watwm:quartz_gem") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); quartzrod = new quartzrod().setUnlocalizedName("quartzrod") .setTextureName("watwm:quartz_rod") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ironrod = new quartzrod().setUnlocalizedName("ironrod") .setTextureName("watwm:iron_rod") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); // Tools & Weapons swordofthechosenone = new swordofthechosenone(chosenToolMaterial) .setUnlocalizedName("ItemSwordofthechosenone") .setTextureName("watwm:sword_of_the_chosen_one") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); swordofcorruptedsouls = new ItemSwordofcorruptedsouls( corruptedToolMaterial) .setUnlocalizedName("ItemSwordofcorruptedsouls") .setTextureName("watwm:sword_of_corrupted_souls") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); dragonsword = new ItemDragonsword(dragonSwordMaterial) .setUnlocalizedName("ItemDragonsword") .setTextureName("watwm:dragon_sword") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ancientsword = new ItemAncientsword(ancientToolMaterial) .setUnlocalizedName("ItemAncientsword") .setTextureName("watwm:ancient_sword") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); soulsword = new Itemsoulsword(soulToolMaterial) .setUnlocalizedName("ItemSoulsword") .setTextureName("watwm:soul_sword") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthsword = new Itemearthsword(earthSwordMaterial) .setUnlocalizedName("ItemEarthsword") .setTextureName("watwm:earth_sword") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ladystaff = new ladystaff(ladyToolMaterial) .setUnlocalizedName("ItemLadystaff") .setTextureName("watwm:lady_staff") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); flamebow = new flamebow().setUnlocalizedName("flamebow") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedbow = new corruptedbow().setUnlocalizedName("corruptedbow") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); burntarrow = new burntarrow().setUnlocalizedName("burntarrow") .setTextureName("watwm:burning_arrow") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedarrow = new wearethewarriorsmod.bow.corruptedarrow() .setUnlocalizedName("corruptedarrow") .setTextureName("watwm:corrupted_arrow") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); dragonpickaxe = new dragonpickaxe(dragonToolMaterial) .setUnlocalizedName("Itemdragonpickaxe") .setTextureName("watwm:dragon_pickaxe") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthpickaxe = new earthpickaxe(earthToolMaterial) .setUnlocalizedName("Itemearthpickaxe") .setTextureName("watwm:earth_pickaxe") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); // Armor ladyhelmet = new Itemladyarmor(ladyArmorMaterial, 0, 0) .setUnlocalizedName("Itemladyhelmet") .setTextureName("watwm:lady_helmet") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ladychestplate = new Itemladyarmor(ladyArmorMaterial, 0, 1) .setUnlocalizedName("Itemladychestplate") .setTextureName("watwm:lady_chestplate") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ladyleggings = new Itemladyarmor(ladyArmorMaterial, 0, 2) .setUnlocalizedName("Itemladyleggings") .setTextureName("watwm:lady_leggings") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ladyboots = new Itemladyarmor(ladyArmorMaterial, 0, 3) .setUnlocalizedName("Itemladyboots") .setTextureName("watwm:lady_boots") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedhelmet = new wearethewarriorsmod.item.Itemcorruptedarmor( corruptedArmorMaterial, 0, 0) .setUnlocalizedName("Itemcorruptedhelmet") .setTextureName("watwm:corrupted_helmet") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedchestplate = new wearethewarriorsmod.item.Itemcorruptedarmor( corruptedArmorMaterial, 0, 1) .setUnlocalizedName("Itemcorruptedchestplate") .setTextureName("watwm:corrupted_chestplate") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedleggings = new wearethewarriorsmod.item.Itemcorruptedarmor( corruptedArmorMaterial, 0, 2) .setUnlocalizedName("Itemcorruptedleggings") .setTextureName("watwm:corrupted_leggings") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); corruptedboots = new wearethewarriorsmod.item.Itemcorruptedarmor( corruptedArmorMaterial, 0, 3) .setUnlocalizedName("Itemcorruptedboots") .setTextureName("watwm:corrupted_boots") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); dragonhelmet = new Itemdragonarmor(dragonArmorMaterial, 0, 0) .setUnlocalizedName("Itemdragonhelmet") .setTextureName("watwm:dragon_helmet") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); dragonchestplate = new Itemdragonarmor(dragonArmorMaterial, 0, 1) .setUnlocalizedName("Itemdragonchestplate") .setTextureName("watwm:dragon_chestplate") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); dragonleggings = new Itemdragonarmor(dragonArmorMaterial, 0, 2) .setUnlocalizedName("Itemdragonleggings") .setTextureName("watwm:dragon_leggings") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); dragonboots = new Itemdragonarmor(dragonArmorMaterial, 0, 3) .setUnlocalizedName("Itemdragonboots") .setTextureName("watwm:dragon_boots") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ancienthelmet = new Itemancientarmor(ancientArmorMaterial, 0, 0) .setUnlocalizedName("ancienthelmet") .setTextureName("watwm:ancient_helmet") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ancientchestplate = new Itemancientarmor(ancientArmorMaterial, 0, 1) .setUnlocalizedName("ancientchestplate") .setTextureName("watwm:ancient_chestplate") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ancientleggings = new Itemancientarmor(ancientArmorMaterial, 0, 2) .setUnlocalizedName("ancientleggings") .setTextureName("watwm:ancient_leggings") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); ancientboots = new Itemancientarmor(ancientArmorMaterial, 0, 3) .setUnlocalizedName("ancientboots") .setTextureName("watwm:ancient_boots") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); chosenhelmet = new Itemchosenarmor(chosenArmorMaterial, 0, 0) .setUnlocalizedName("chosenhelmet") .setTextureName("watwm:the_chosen_ones_helmet") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); chosenchestplate = new Itemchosenarmor(chosenArmorMaterial, 0, 1) .setUnlocalizedName("chosenchestplate") .setTextureName("watwm:the_chosen_ones_chestplate") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); chosenleggings = new Itemchosenarmor(chosenArmorMaterial, 0, 2) .setUnlocalizedName("chosenleggings") .setTextureName("watwm:the_chosen_ones_leggings") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); chosenboots = new Itemchosenarmor(chosenArmorMaterial, 0, 3) .setUnlocalizedName("chosenboots") .setTextureName("watwm:the_chosen_ones_boots") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); soulhelmet = new ItemsoulArmor(soulArmorMaterial, 0, 0) .setUnlocalizedName("soulhelmet") .setTextureName("watwm:soul_helmet") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); soulchestplate = new ItemsoulArmor(soulArmorMaterial, 0, 1) .setUnlocalizedName("soulchestplate") .setTextureName("watwm:soul_chestplate") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); soulleggings = new ItemsoulArmor(soulArmorMaterial, 0, 2) .setUnlocalizedName("soulleggings") .setTextureName("watwm:soul_leggings") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); soulboots = new ItemsoulArmor(soulArmorMaterial, 0, 3) .setUnlocalizedName("soulboots") .setTextureName("watwm:soul_boots") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthhelmet = new earthArmor(earthArmorMaterial, 0, 0) .setUnlocalizedName("earthhelmet") .setTextureName("watwm:earth_helmet") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthchestplate = new earthArmor(earthArmorMaterial, 0, 1) .setUnlocalizedName("earthchestplate") .setTextureName("watwm:earth_chestplate") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthleggings = new earthArmor(earthArmorMaterial, 0, 2) .setUnlocalizedName("earthleggings") .setTextureName("watwm:earth_leggings") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); earthboots = new earthArmor(earthArmorMaterial, 0, 3) .setUnlocalizedName("earthboots") .setTextureName("watwm:earth_boots") .setCreativeTab(WeAreTheWarriorsMod.tabWeAreTheWarriorsMod); } public static void registerItem() { // Items GameRegistry.registerItem(soulshard, soulshard.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(blazeshard, blazeshard.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(earthshard, earthshard.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(corruptedsoulgem, corruptedsoulgem .getUnlocalizedName().substring(5)); GameRegistry.registerItem(puresoulgem, puresoulgem.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(dragonrod, dragonrod.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(flamedust, flamedust.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(corruptedsoul, corruptedsoul .getUnlocalizedName().substring(5)); GameRegistry.registerItem(flamegem, flamegem.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(burntstring, burntstring.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(corruptedsoulrod, corruptedsoulrod .getUnlocalizedName().substring(5)); GameRegistry.registerItem(corruptedstring, corruptedstring .getUnlocalizedName().substring(5)); GameRegistry.registerItem(hollowgem, hollowgem.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(earthgem, earthgem.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(pureelementalgem, pureelementalgem .getUnlocalizedName().substring(5)); GameRegistry.registerItem(soulrod, soulrod.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(sharpiron, sharpiron.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(heartshard, heartshard.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(quartzgem, quartzgem.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(crystalheart, crystalheart .getUnlocalizedName().substring(5)); GameRegistry.registerItem(quartzrod, quartzrod.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(ironrod, ironrod.getUnlocalizedName() .substring(5)); // Tools & Weapons GameRegistry.registerItem(swordofthechosenone, swordofthechosenone .getUnlocalizedName().substring(5)); GameRegistry.registerItem(swordofcorruptedsouls, swordofcorruptedsouls .getUnlocalizedName().substring(5)); GameRegistry.registerItem(dragonsword, dragonsword.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(ancientsword, ancientsword .getUnlocalizedName().substring(5)); GameRegistry.registerItem(soulsword, soulsword.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(earthsword, earthsword.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(ladystaff, ladystaff.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(flamebow, flamebow.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(corruptedbow, corruptedbow .getUnlocalizedName().substring(5)); GameRegistry.registerItem(burntarrow, burntarrow.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(corruptedarrow, corruptedarrow .getUnlocalizedName().substring(5)); GameRegistry.registerItem(dragonpickaxe, dragonpickaxe .getUnlocalizedName().substring(5)); GameRegistry.registerItem(earthpickaxe, earthpickaxe .getUnlocalizedName().substring(5)); // Armor GameRegistry.registerItem(ladyhelmet, ladyhelmet.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(ladychestplate, ladychestplate .getUnlocalizedName().substring(5)); GameRegistry.registerItem(ladyleggings, ladyleggings .getUnlocalizedName().substring(5)); GameRegistry.registerItem(ladyboots, ladyboots.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(corruptedhelmet, corruptedhelmet .getUnlocalizedName().substring(5)); GameRegistry.registerItem(corruptedchestplate, corruptedchestplate .getUnlocalizedName().substring(5)); GameRegistry.registerItem(corruptedleggings, corruptedleggings .getUnlocalizedName().substring(5)); GameRegistry.registerItem(corruptedboots, corruptedboots .getUnlocalizedName().substring(5)); GameRegistry.registerItem(dragonhelmet, dragonhelmet .getUnlocalizedName().substring(5)); GameRegistry.registerItem(dragonchestplate, dragonchestplate .getUnlocalizedName().substring(5)); GameRegistry.registerItem(dragonleggings, dragonleggings .getUnlocalizedName().substring(5)); GameRegistry.registerItem(dragonboots, dragonboots.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(ancienthelmet, ancienthelmet .getUnlocalizedName().substring(5)); GameRegistry.registerItem(ancientchestplate, ancientchestplate .getUnlocalizedName().substring(5)); GameRegistry.registerItem(ancientleggings, ancientleggings .getUnlocalizedName().substring(5)); GameRegistry.registerItem(ancientboots, ancientboots .getUnlocalizedName().substring(5)); GameRegistry.registerItem(chosenhelmet, chosenhelmet .getUnlocalizedName().substring(5)); GameRegistry.registerItem(chosenchestplate, chosenchestplate .getUnlocalizedName().substring(5)); GameRegistry.registerItem(chosenleggings, chosenleggings .getUnlocalizedName().substring(5)); GameRegistry.registerItem(chosenboots, chosenboots.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(soulhelmet, soulhelmet.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(soulchestplate, soulchestplate .getUnlocalizedName().substring(5)); GameRegistry.registerItem(soulleggings, soulleggings .getUnlocalizedName().substring(5)); GameRegistry.registerItem(soulboots, soulboots.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(earthhelmet, earthhelmet.getUnlocalizedName() .substring(5)); GameRegistry.registerItem(earthchestplate, earthchestplate .getUnlocalizedName().substring(5)); GameRegistry.registerItem(earthleggings, earthleggings .getUnlocalizedName().substring(5)); GameRegistry.registerItem(earthboots, earthboots.getUnlocalizedName() .substring(5)); } } if its something obvious im sorry for wasting your time but please help. Quote The Creator of the We Are The Warriors Mod https://scontent-sjc.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10985858_1068047526542843_8233581795453767454_n.png?oh=aad9679e5ae8470bbd9a58236c0e391b&oe=55AAFDC7[/img]
coolAlias Posted June 24, 2015 Posted June 24, 2015 You can't reference an object before it is initialized. Initialize first, then register. Quote http://i.imgur.com/NdrFdld.png[/img]
2FastAssassin Posted June 24, 2015 Author Posted June 24, 2015 oh, I see now. thanks Quote The Creator of the We Are The Warriors Mod https://scontent-sjc.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10985858_1068047526542843_8233581795453767454_n.png?oh=aad9679e5ae8470bbd9a58236c0e391b&oe=55AAFDC7[/img]
Recommended Posts
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.