Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[Forge] crash when loading items


  • Please log in to reply
23 replies to this topic

#1

ZuZu26
    ZuZu26

    Tree Puncher

  • Members
  • 13 posts

Posted 27 December 2012 - 11:19 AM

Hello , i just added tools in my mod named Ambrocraft , and when i load minecraft gives me this crash :
2012-12-27 13:15:37 [INFO] [ForgeModLoader] Forge Mod Loader version 4.6.12.511 for Minecraft 1.4.6 loading
2012-12-27 13:15:49 [INFO] [STDOUT] 27 achievements
2012-12-27 13:15:49 [INFO] [STDOUT] 210 recipes
2012-12-27 13:15:50 [INFO] [STDOUT] Setting user: Player882, -
2012-12-27 13:15:50 [INFO] [STDERR] Client asked for parameter: server
2012-12-27 13:15:50 [INFO] [STDOUT] LWJGL Version: 2.4.2
2012-12-27 13:15:53 [INFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2012-12-27 13:15:53 [INFO] [STDOUT] MinecraftForge v6.5.0.471 Initialized
2012-12-27 13:15:53 [INFO] [ForgeModLoader] MinecraftForge v6.5.0.471 Initialized
2012-12-27 13:15:54 [INFO] [STDOUT] Replaced 84 ore recipies
2012-12-27 13:15:54 [INFO] [ForgeModLoader] Completed early MinecraftForge initialization
2012-12-27 13:15:57 [INFO] [ForgeModLoader] Searching C:\Users\ZuZu\Desktop\Modding\jars\mods for mods
2012-12-27 13:16:05 [INFO] [ForgeModLoader] Attempting to reparse the mod container bin
2012-12-27 13:16:09 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2012-12-27 13:16:12 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
2012-12-27 13:16:12 [SEVERE] [ForgeModLoader]
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
Ambro [Ambrocraft] (bin) Unloaded->Errored
2012-12-27 13:16:12 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2012-12-27 13:16:12 [SEVERE] [ForgeModLoader] Caught exception from Ambro
java.lang.NullPointerException
at net.minecraft.item.ItemTool.<init>(ItemTool.java:30)
at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:13)
at ambro.craft.ItemAmbrosiumAxe.<init>(ItemAmbrosiumAxe.java:9)
at ambro.craft.Ambrobase.<init>(Ambrobase.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:450)
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:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:410)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Thread.java:722)
2012-12-27 13:16:14 [INFO] [STDERR] java.lang.NullPointerException
2012-12-27 13:16:14 [INFO] [STDERR]  at net.minecraft.item.ItemTool.<init>(ItemTool.java:30)
2012-12-27 13:16:14 [INFO] [STDERR]  at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:13)
2012-12-27 13:16:14 [INFO] [STDERR]  at ambro.craft.ItemAmbrosiumAxe.<init>(ItemAmbrosiumAxe.java:9)
2012-12-27 13:16:14 [INFO] [STDERR]  at ambro.craft.Ambrobase.<init>(Ambrobase.java:32)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2012-12-27 13:16:14 [INFO] [STDERR]  at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
2012-12-27 13:16:14 [INFO] [STDERR]  at java.lang.Class.newInstance0(Class.java:372)
2012-12-27 13:16:14 [INFO] [STDERR]  at java.lang.Class.newInstance(Class.java:325)
2012-12-27 13:16:14 [INFO] [STDERR]  at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:450)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-12-27 13:16:14 [INFO] [STDERR]  at java.lang.reflect.Method.invoke(Method.java:601)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-12-27 13:16:14 [INFO] [STDERR]  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-12-27 13:16:14 [INFO] [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-12-27 13:16:14 [INFO] [STDERR]  at java.lang.reflect.Method.invoke(Method.java:601)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-12-27 13:16:14 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-12-27 13:16:14 [INFO] [STDERR]  at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
2012-12-27 13:16:14 [INFO] [STDERR]  at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
2012-12-27 13:16:14 [INFO] [STDERR]  at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
2012-12-27 13:16:14 [INFO] [STDERR]  at net.minecraft.client.Minecraft.startGame(Minecraft.java:410)
2012-12-27 13:16:14 [INFO] [STDERR]  at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2012-12-27 13:16:14 [INFO] [STDERR]  at net.minecraft.client.Minecraft.run(Minecraft.java:744)
2012-12-27 13:16:14 [INFO] [STDERR]  at java.lang.Thread.run(Thread.java:722)

Can you help me ? :D
Thanks.
P.S if you need base code or something else tell me

Register or log in to remove.

#2

The_BrainStone
  • Location: Karlsruhe, BW, Germany
  • Minecraft: The_BrainStone

Posted 27 December 2012 - 11:20 AM

Yes. Code

#3

dmillerw
    dmillerw

    Nether Resident

  • Curse Premium
  • Curse Premium
  • 2160 posts
  • Minecraft: dmillerw

Posted 27 December 2012 - 11:24 AM

Are you kidding me? Learn to read.


2012-12-27 13:16:14 [INFO] [STDERR] java.lang.NullPointerException
2012-12-27 13:16:14 [INFO] [STDERR]  at net.minecraft.item.ItemTool.<init>(ItemTool.java:30)
2012-12-27 13:16:14 [INFO] [STDERR]  at net.minecraft.item.ItemAxe.<init>(ItemAxe.java:13)
2012-12-27 13:16:14 [INFO] [STDERR]  at ambro.craft.ItemAmbrosiumAxe.<init>(ItemAmbrosiumAxe.java:9)

#4

ZuZu26
    ZuZu26

    Tree Puncher

  • Members
  • 13 posts

Posted 27 December 2012 - 11:35 AM

Thats the axe code :
package ambro.craft;

import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemAxe;

public class ItemAmbrosiumAxe extends ItemAxe{

	 public ItemAmbrosiumAxe(int ItemID, EnumToolMaterial material){
			 super(ItemID, material);
	 }
	
	
	 public String getTextureFile(){
			 return "/Items.png";
	 }
}

Thats the pickaxe code :
package ambro.craft;

import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemPickaxe;

public class ItemAmbrosiumPickaxe extends ItemPickaxe{

	 public ItemAmbrosiumPickaxe(int ItemID, EnumToolMaterial material){
			 super(ItemID, material);
	 }
	
	
	 public String getTextureFile(){
			 return "/Items.png";
	 }
}

Thats the shovel code :
package ambro.craft;

import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemSpade;

public class ItemAmbrosiumSpade extends ItemSpade{

	 public ItemAmbrosiumSpade(int ItemID, EnumToolMaterial material){
			 super(ItemID, material);
	 }
	
	
	 public String getTextureFile(){
			 return "/Items.png";
	 }
}


#5

The_BrainStone
  • Location: Karlsruhe, BW, Germany
  • Minecraft: The_BrainStone

Posted 27 December 2012 - 11:40 AM

I need to see the mos file! But I bet it's the material!

#6

ZuZu26
    ZuZu26

    Tree Puncher

  • Members
  • 13 posts

Posted 27 December 2012 - 11:42 AM

package ambro.craft;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.Item;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
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.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
// This Import list will grow longer with each additional tutorial.
// It's not pruned between full class postings, unlike other tutorial code.

@Mod(modid="Ambro", name="Ambrocraft", version="0.0.1")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class Ambrobase {
public static Item AmbrosiumShovel;
public static Item AmbrosiumPickaxe;
public static Item AmbrosiumAxe;{
Item AmbrosiumAxe = new ItemAmbrosiumAxe(503, null).setItemName("AmbrosiumAxe").setIconCoord(5, 0);
Item AmbrosiumPickaxe= new ItemAmbrosiumPickaxe(504, null).setItemName("AmbrosiumPickaxe").setIconCoord(4, 0);
Item AmbrosiumShovel = new ItemAmbrosiumSpade(505, null ).setItemName("AmbrosiumShovel").setIconCoord(6, 0);}
public static final Block ambrosiumBlock = new BlockAmbrosiumOre(3200, 1).setCreativeTab(CreativeTabs.tabBlock).setHardness(3F).setStepSound(Block.soundStoneFootstep).setBlockName("ambrosiumOre");
public static final Block heridiumBlock = new BlockHeridium(3000, 0).setHardness(3F).setStepSound(Block.soundStoneFootstep).setBlockName("heridiumBlock");
public static final Item ambrosium = new ItemAmbrosium(3100).setCreativeTab(CreativeTabs.tabMaterials).setItemName("ambrosium").setIconCoord(3, 0);

@Instance("Ambro")
public static Ambrobase instance;
public class TestWorldGeneratorSubclass extends TestWorldGenerator {
  public TestWorldGeneratorSubclass() {
   // stuff
  }
}
public static TestWorldGenerator worldGen = new TestWorldGenerator(); // This is your world generation file.

@SidedProxy(clientSide="ambro.craft.client.ClientProxy",
   serverSide="ambro.craft.CommonProxy")
public static CommonProxy proxy;

@PreInit
public void preInit(FMLPreInitializationEvent event) {
  GameRegistry.registerBlock(heridiumBlock);
  LanguageRegistry.addName(heridiumBlock, "Heridium");
  GameRegistry.registerBlock(ambrosiumBlock);
  LanguageRegistry.addName(ambrosium, "Ambrosium");
  LanguageRegistry.addName(ambrosiumBlock, "Ambrosium Ore");
  LanguageRegistry.addName(ambrosiumBlock, "Ambrosium Ore");
		LanguageRegistry.addName(AmbrosiumPickaxe, "Ambrosium Pickaxe");
		LanguageRegistry.addName(AmbrosiumAxe, "Ambrosium Axe");
		LanguageRegistry.addName(AmbrosiumShovel, "Ambrosium Shovel");
}
@Init
public void load(FMLInitializationEvent event) {
  GameRegistry.registerWorldGenerator(new TestWorldGenerator());   // Add this in your @Init method. If you haven't already, import cpw.mods.fml.common.registry.GameRegistry.	 
}

private void addOreRecipes() {
  // TODO Auto-generated method stub
}
private void oreRegistration() {
  OreDictionary.registerOre("oreAmbrosium", new ItemStack(ambrosiumBlock));
}
private void addNames() {
  // TODO Auto-generated method stub
 
	  
}
@PostInit
public void postInit(FMLPostInitializationEvent event) {
}
}

That's the mod file

#7

The_BrainStone
  • Location: Karlsruhe, BW, Germany
  • Minecraft: The_BrainStone

Posted 27 December 2012 - 11:47 AM

Item AmbrosiumAxe = new ItemAmbrosiumAxe(503, null).setItemName("AmbrosiumAxe").setIconCoord(5, 0);
Item AmbrosiumPickaxe= new ItemAmbrosiumPickaxe(504, null).setItemName("AmbrosiumPickaxe").setIconCoord(4, 0);
Item AmbrosiumShovel = new ItemAmbrosiumSpade(505, null ).setItemName("AmbrosiumShovel").setIconCoord(6, 0);

Here we have your Null pointer exception! You need a material!

#8

dmillerw
    dmillerw

    Nether Resident

  • Curse Premium
  • Curse Premium
  • 2160 posts
  • Minecraft: dmillerw

Posted 27 December 2012 - 11:47 AM

You can't set your tool material to null...

#9

ZuZu26
    ZuZu26

    Tree Puncher

  • Members
  • 13 posts

Posted 27 December 2012 - 12:06 PM

Ok , i changed material to diamond(256) , but it's marked with red ....

#10

The_BrainStone
  • Location: Karlsruhe, BW, Germany
  • Minecraft: The_BrainStone

Posted 27 December 2012 - 12:16 PM

public static EnumToolMaterial toolAMBROSIA = EnumHelper.addToolMaterial("AMBROSIA", 3, 5368, 6F, 5, 25);
And then use toolAMBROSIA instaed of null.
The values are: harvest level (3 diamond, 2 iron, 1 stone, 0 gold and wood), max uses (diamanod has about 1561), efficiency (diamond has 12.0F, iron 6.0F), damage (vs Entity, diamond has 3), and enchantability (diamond 10, iron 14, stone 5, gold 22, wood 15)

#11

ZuZu26
    ZuZu26

    Tree Puncher

  • Members
  • 13 posts

Posted 27 December 2012 - 12:25 PM

Thanks , all is good except EnumHelper , is maked with red saying it cannot be resolved

#12

The_BrainStone
  • Location: Karlsruhe, BW, Germany
  • Minecraft: The_BrainStone

Posted 27 December 2012 - 12:27 PM

Press Ctrl + Alt or Shift + O

That should solve it.

#13

ZuZu26
    ZuZu26

    Tree Puncher

  • Members
  • 13 posts

Posted 27 December 2012 - 12:41 PM

Ok , another crash ...
2012-12-27 14:38:38 [INFO] [ForgeModLoader] Forge Mod Loader version 4.6.12.511 for Minecraft 1.4.6 loading
2012-12-27 14:38:45 [INFO] [STDOUT] 27 achievements
2012-12-27 14:38:45 [INFO] [STDOUT] 210 recipes
2012-12-27 14:38:45 [INFO] [STDOUT] Setting user: Player487, -
2012-12-27 14:38:45 [INFO] [STDERR] Client asked for parameter: server
2012-12-27 14:38:45 [INFO] [STDOUT] LWJGL Version: 2.4.2
2012-12-27 14:38:46 [INFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2012-12-27 14:38:46 [INFO] [STDOUT] MinecraftForge v6.5.0.471 Initialized
2012-12-27 14:38:46 [INFO] [ForgeModLoader] MinecraftForge v6.5.0.471 Initialized
2012-12-27 14:38:48 [INFO] [STDOUT] Replaced 84 ore recipies
2012-12-27 14:38:48 [INFO] [ForgeModLoader] Completed early MinecraftForge initialization
2012-12-27 14:38:52 [INFO] [ForgeModLoader] Searching C:\Users\ZuZu\Desktop\Modding\jars\mods for mods
2012-12-27 14:38:55 [INFO] [ForgeModLoader] Attempting to reparse the mod container bin
2012-12-27 14:38:58 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2012-12-27 14:39:00 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2012-12-27 14:39:00 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
2012-12-27 14:39:00 [SEVERE] [ForgeModLoader]
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized
Ambro [Ambrocraft] (bin) Unloaded->Constructed->Errored
2012-12-27 14:39:00 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2012-12-27 14:39:00 [SEVERE] [ForgeModLoader] Caught exception from Ambro
java.lang.IllegalArgumentException: Illegal object for naming null
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:95)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103)
at ambro.craft.Ambrobase.preInit(Ambrobase.java:66)
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:601)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:478)
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:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:485)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:410)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Thread.java:722)
2012-12-27 14:39:00 [INFO] [STDERR] java.lang.IllegalArgumentException: Illegal object for naming null
2012-12-27 14:39:00 [INFO] [STDERR]  at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:95)
2012-12-27 14:39:00 [INFO] [STDERR]  at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103)
2012-12-27 14:39:00 [INFO] [STDERR]  at ambro.craft.Ambrobase.preInit(Ambrobase.java:66)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-12-27 14:39:00 [INFO] [STDERR]  at java.lang.reflect.Method.invoke(Method.java:601)
2012-12-27 14:39:00 [INFO] [STDERR]  at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:478)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-12-27 14:39:00 [INFO] [STDERR]  at java.lang.reflect.Method.invoke(Method.java:601)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-12-27 14:39:00 [INFO] [STDERR]  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-12-27 14:39:00 [INFO] [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-12-27 14:39:00 [INFO] [STDERR]  at java.lang.reflect.Method.invoke(Method.java:601)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-12-27 14:39:00 [INFO] [STDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-12-27 14:39:00 [INFO] [STDERR]  at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
2012-12-27 14:39:00 [INFO] [STDERR]  at cpw.mods.fml.common.Loader.loadMods(Loader.java:485)
2012-12-27 14:39:00 [INFO] [STDERR]  at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161)
2012-12-27 14:39:00 [INFO] [STDERR]  at net.minecraft.client.Minecraft.startGame(Minecraft.java:410)
2012-12-27 14:39:00 [INFO] [STDERR]  at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2012-12-27 14:39:00 [INFO] [STDERR]  at net.minecraft.client.Minecraft.run(Minecraft.java:744)
2012-12-27 14:39:00 [INFO] [STDERR]  at java.lang.Thread.run(Thread.java:722)


#14

The_BrainStone
  • Location: Karlsruhe, BW, Germany
  • Minecraft: The_BrainStone

Posted 27 December 2012 - 12:47 PM

What is line 66 of your Mod class?

#15

ZuZu26
    ZuZu26

    Tree Puncher

  • Members
  • 13 posts

Posted 27 December 2012 - 12:49 PM

That's the line 66
		LanguageRegistry.addName(AmbrosiumPickaxe, "Ambrosium Pickaxe");


#16

dmillerw
    dmillerw

    Nether Resident

  • Curse Premium
  • Curse Premium
  • 2160 posts
  • Minecraft: dmillerw

Posted 27 December 2012 - 12:53 PM

public static Item AmbrosiumShovel;
public static Item AmbrosiumPickaxe;
public static Item AmbrosiumAxe;
{
Item AmbrosiumAxe = new ItemAmbrosiumAxe(503, null).setItemName(
"AmbrosiumAxe").setIconCoord(5, 0);
Item AmbrosiumPickaxe = new ItemAmbrosiumPickaxe(504, null)
.setItemName("AmbrosiumPickaxe").setIconCoord(4, 0);
Item AmbrosiumShovel = new ItemAmbrosiumSpade(505, null).setItemName(
"AmbrosiumShovel").setIconCoord(6, 0);
}

Fix that mess. You have random braces, and duplicate Item instances.

#17

Flammantis
  • Location: Eclipse IDE

Posted 27 December 2012 - 12:54 PM

oops. You don't need to put your initialize code inside those braces. Just put them after your declaration, e.g

Item AmbrosiumAxe = new ItemAmbrosiumAxe(503, toolAMBROSIA).setItemName(
"AmbrosiumAxe").setIconCoord(5, 0);


#18

dmillerw
    dmillerw

    Nether Resident

  • Curse Premium
  • Curse Premium
  • 2160 posts
  • Minecraft: dmillerw

Posted 27 December 2012 - 12:55 PM

Your error, by the way, is FML complaining about the Object you're trying to name not being a valid Block, Item, or ItemBlock.

View PostFlammantis, on 27 December 2012 - 12:54 PM, said:

Is LanguageRegistry imported?

Uh, seeing as the error is coming from LanguageRegistry, I'd say yes.

#19

Flammantis
  • Location: Eclipse IDE

Posted 27 December 2012 - 12:59 PM

View Postdmillerw, on 27 December 2012 - 12:55 PM, said:

Your error, by the way, is FML complaining about the Object you're trying to name not being a valid Block, Item, or ItemBlock.



Uh, seeing as the error is coming from LanguageRegistry, I'd say yes.

Yeah. I kinda forgot to read the error much. *oops*

#20

Megabitus98
  • Minecraft: Megabitus

Posted 27 December 2012 - 01:05 PM

I am a friend of ZuZu , he told me he can't post anymore because he has 10 posts.He made everything that you sad and it still gave the same error.