I've been trying too make my own mod with eclipse on minecraft 1.5.2 forge, but when i try too start minecraft after im done i get this error message. So i was wondering if i could get some help on what im doing wrong.
2013-12-12 12:29:21 [INFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading
2013-12-12 12:29:21 [INFO] [ForgeModLoader] Java is Java HotSpotâ„¢ 64-Bit Server VM, version 1.7.0_45, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
2013-12-12 12:29:21 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-12-12 12:29:22 [INFO] [STDOUT] 229 recipes
2013-12-12 12:29:22 [INFO] [STDOUT] 27 achievements
2013-12-12 12:29:22 [INFO] [Minecraft-Client] Setting user: Player159
2013-12-12 12:29:22 [INFO] [STDOUT] (Session ID is -)
2013-12-12 12:29:22 [INFO] [STDERR] Client asked for parameter: server
2013-12-12 12:29:22 [INFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-12-12 12:29:23 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-12-12 12:29:23 [INFO] [STDOUT] MinecraftForge v7.7.1.611 Initialized
2013-12-12 12:29:23 [INFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized
2013-12-12 12:29:23 [INFO] [STDOUT] Replaced 85 ore recipies
2013-12-12 12:29:23 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Isak\Desktop\Modding\MIN Dimension\jars\config\logging.properties
2013-12-12 12:29:23 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Searching C:\Users\Isak\Desktop\Modding\MIN Dimension\jars\mods for mods
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-12-12 12:29:23 [INFO] [mcp] Activating mod mcp
2013-12-12 12:29:23 [INFO] [FML] Activating mod FML
2013-12-12 12:29:23 [INFO] [Forge] Activating mod Forge
2013-12-12 12:29:23 [INFO] [MINMod] Activating mod MINMod
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-12-12 12:29:23 [INFO] [STDOUT]
2013-12-12 12:29:23 [INFO] [STDOUT] Starting up SoundSystem...
2013-12-12 12:29:24 [INFO] [STDOUT] Initializing LWJGL OpenAL
2013-12-12 12:29:24 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
2013-12-12 12:29:24 [INFO] [STDOUT] OpenAL initialized.
2013-12-12 12:29:24 [INFO] [STDOUT]
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-12-12 12:29:25 [INFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-12-12 12:29:25 [INFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader]
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
MINMod [MIN Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader] Caught exception from MINMod
java.lang.ArrayIndexOutOfBoundsException: 5119
at net.minecraft.block.Block.<init>(Block.java:338)
at MIN.EmeraldOre.<init>(EmeraldOre.java:18)
at MIN.MINMod.load(MINMod.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] java.lang.ArrayIndexOutOfBoundsException: 5119
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.block.Block.<init>(Block.java:338)
2013-12-12 12:29:25 [INFO] [STDERR] at MIN.EmeraldOre.<init>(EmeraldOre.java:18)
2013-12-12 12:29:25 [INFO] [STDERR] at MIN.MINMod.load(MINMod.java:56)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
//tools
public static Item iceAxe;
public static Item iceShovel;
public static Item iceSword;
public static Item icePickaxe;
public static Item iceHoe;
//blocks
public static Block EmeraldOre;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
EmeraldOre= new EmeraldOre(3000, "EmeraldOre").setUnlocalizedName("emerald_ore").setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F);
GameRegistry.registerBlock(EmeraldOre, "EmeraldOre");
LanguageRegistry.addName(EmeraldOre, "Emerald Ore");
//tools
iceAxe = new MINAxe(3001, EnumToolMaterialice).setUnlocalizedName("ice_axe");
iceShovel = new MINShovel(3002, EnumToolMaterialice).setUnlocalizedName("ice_shovel");
icePickaxe = new MINPickaxe(3003, EnumToolMaterialice).setUnlocalizedName("ice_pickaxe");
iceHoe = new MINHoe(3003, EnumToolMaterialice).setUnlocalizedName("ice_hoe");
iceSword = new MINSword(3004, EnumToolMaterialice).setUnlocalizedName("ice_sword");
ruby = new GemItems(3005).setUnlocalizedName("ruby");
//adding names
LanguageRegistry.addName(ruby, "Ruby");
//crafting
GameRegistry.addRecipe(new ItemStack(iceSword,1), new Object[]{
" T "," T "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(iceAxe,1), new Object[]{
"TT ","TS "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(iceHoe,1), new Object[]{
"TT "," S "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(icePickaxe,1), new Object[]{
"TTT"," S "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(iceShovel,1), new Object[]{
" T "," S "," S ",'T',Block.ice,'S',Item.stick
});
}
It has something to with the emerald ore.
Maybe you did overwrite something, I mean emerald ore already exists.
Could u tell me what line 56 of minmod is and give me line 18 from emeraldore.java?
Thanks for respons and I dont know why theres a FML event thing there, shall i delete it?
I can changed the name of the ore to "EmeraaldOre" but it dident help
And here is line 18 from EmeraldOre.java (EmeraaldOre.java):
super(par1, Material.rock);
public EmeraaldOre(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock); //place in creative tabs
}
//drops when broken with pickaxe
public int idDropped(int par1, Random par2Random, int par3)
{
return MINMod.EmeraaldOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
//texure the block (Not sure if it's required)
public String getTextureFile(){
return "/textures/blocks/emerald_ore.png";
}
If you want to learn modding for real, check out CS106A they are great for mastering the fundamnetals of Java.
From there on errors like these will be a lot easier to solve by yourself in 2-3 minutes
If you google the index out of bounds array error you should also be able to find a few posts about it.
The problem is as said above that you try to do something on a place which is outside of the array which is impossible.
Example: If you have a row of 9 barrels and ask it to get water from the 10th it will be confused and crash with that exception.
2013-12-12 12:29:21 [INFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading
2013-12-12 12:29:21 [INFO] [ForgeModLoader] Java is Java HotSpotâ„¢ 64-Bit Server VM, version 1.7.0_45, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
2013-12-12 12:29:21 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-12-12 12:29:22 [INFO] [STDOUT] 229 recipes
2013-12-12 12:29:22 [INFO] [STDOUT] 27 achievements
2013-12-12 12:29:22 [INFO] [Minecraft-Client] Setting user: Player159
2013-12-12 12:29:22 [INFO] [STDOUT] (Session ID is -)
2013-12-12 12:29:22 [INFO] [STDERR] Client asked for parameter: server
2013-12-12 12:29:22 [INFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-12-12 12:29:23 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-12-12 12:29:23 [INFO] [STDOUT] MinecraftForge v7.7.1.611 Initialized
2013-12-12 12:29:23 [INFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized
2013-12-12 12:29:23 [INFO] [STDOUT] Replaced 85 ore recipies
2013-12-12 12:29:23 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Isak\Desktop\Modding\MIN Dimension\jars\config\logging.properties
2013-12-12 12:29:23 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Searching C:\Users\Isak\Desktop\Modding\MIN Dimension\jars\mods for mods
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-12-12 12:29:23 [INFO] [mcp] Activating mod mcp
2013-12-12 12:29:23 [INFO] [FML] Activating mod FML
2013-12-12 12:29:23 [INFO] [Forge] Activating mod Forge
2013-12-12 12:29:23 [INFO] [MINMod] Activating mod MINMod
2013-12-12 12:29:23 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-12-12 12:29:23 [INFO] [STDOUT]
2013-12-12 12:29:23 [INFO] [STDOUT] Starting up SoundSystem...
2013-12-12 12:29:24 [INFO] [STDOUT] Initializing LWJGL OpenAL
2013-12-12 12:29:24 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
2013-12-12 12:29:24 [INFO] [STDOUT] OpenAL initialized.
2013-12-12 12:29:24 [INFO] [STDOUT]
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-12-12 12:29:24 [INFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-12-12 12:29:25 [INFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-12-12 12:29:25 [INFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader]
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
MINMod [MIN Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-12-12 12:29:25 [SEVERE] [ForgeModLoader] Caught exception from MINMod
java.lang.ArrayIndexOutOfBoundsException: 5119
at net.minecraft.block.Block.<init>(Block.java:338)
at MIN.EmeraldOre.<init>(EmeraldOre.java:18)
at MIN.MINMod.load(MINMod.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] java.lang.ArrayIndexOutOfBoundsException: 5119
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.block.Block.<init>(Block.java:338)
2013-12-12 12:29:25 [INFO] [STDERR] at MIN.EmeraldOre.<init>(EmeraldOre.java:18)
2013-12-12 12:29:25 [INFO] [STDERR] at MIN.MINMod.load(MINMod.java:56)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-12-12 12:29:25 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
2013-12-12 12:29:25 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-12-12 12:29:25 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)
2013-12-12 12:29:25 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
And here is the MINMod.java:
package MIN; //Package directory
/*
* Basic importing
*/
import net.minecraft.block.Block;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid="MINMod",name="MIN Mod",version="v1")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class MINMod {
/*
* ToolMaterial
*/
static EnumToolMaterial EnumToolMaterialice= EnumHelper.addToolMaterial("Ice", 2, 16, 8.0F, 2, 10);
//Telling forge that we are creating these
//items
public static Item ruby;
//tools
public static Item iceAxe;
public static Item iceShovel;
public static Item iceSword;
public static Item icePickaxe;
public static Item iceHoe;
//blocks
public static Block EmeraldOre;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
EmeraldOre= new EmeraldOre(3000, "EmeraldOre").setUnlocalizedName("emerald_ore").setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F);
GameRegistry.registerBlock(EmeraldOre, "EmeraldOre");
LanguageRegistry.addName(EmeraldOre, "Emerald Ore");
//tools
iceAxe = new MINAxe(3001, EnumToolMaterialice).setUnlocalizedName("ice_axe");
iceShovel = new MINShovel(3002, EnumToolMaterialice).setUnlocalizedName("ice_shovel");
icePickaxe = new MINPickaxe(3003, EnumToolMaterialice).setUnlocalizedName("ice_pickaxe");
iceHoe = new MINHoe(3003, EnumToolMaterialice).setUnlocalizedName("ice_hoe");
iceSword = new MINSword(3004, EnumToolMaterialice).setUnlocalizedName("ice_sword");
ruby = new GemItems(3005).setUnlocalizedName("ruby");
//adding names
LanguageRegistry.addName(ruby, "Ruby");
//crafting
GameRegistry.addRecipe(new ItemStack(iceSword,1), new Object[]{
" T "," T "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(iceAxe,1), new Object[]{
"TT ","TS "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(iceHoe,1), new Object[]{
"TT "," S "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(icePickaxe,1), new Object[]{
"TTT"," S "," S ",'T',Block.ice,'S',Item.stick
});
GameRegistry.addRecipe(new ItemStack(iceShovel,1), new Object[]{
" T "," S "," S ",'T',Block.ice,'S',Item.stick
});
}
}
It has something to with the emerald ore.
Maybe you did overwrite something, I mean emerald ore already exists.
Could u tell me what line 56 of minmod is and give me line 18 from emeraldore.java?
I can changed the name of the ore to "EmeraaldOre" but it dident help
And here is line 18 from EmeraldOre.java (EmeraaldOre.java):
super(par1, Material.rock);
package MIN;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class EmeraaldOre extends Block {
public EmeraaldOre(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock); //place in creative tabs
}
//drops when broken with pickaxe
public int idDropped(int par1, Random par2Random, int par3)
{
return MINMod.EmeraaldOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
//texure the block (Not sure if it's required)
public String getTextureFile(){
return "/textures/blocks/emerald_ore.png";
}
}
From there on errors like these will be a lot easier to solve by yourself in 2-3 minutes
If you google the index out of bounds array error you should also be able to find a few posts about it.
The problem is as said above that you try to do something on a place which is outside of the array which is impossible.
Example: If you have a row of 9 barrels and ask it to get water from the 10th it will be confused and crash with that exception.