Jump to content

Nullpoint exception while creating block


majesticmadman98

Recommended Posts

All the code functions fine, apart from when the codes around my ore block are added.

Main class path = C:\Users\User\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\src\minecraft\b\OOMOD\OOmain.Java

 

Block Class file =C:\Users\User\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\src\minecraft\b\OOMOD\ore\CBore.java

 

Main Code

package b.OOMOD;

import b.OOMOD.Weapons.weaponCBdagger;
import b.OOMOD.Weapons.weaponCBhammer;
import b.OOMOD.Weapons.weaponCBsword;
import b.OOMOD.Weapons.weaponIGknife;
import b.OOMOD.Weapons.weaponIGknife;
import b.OOMOD.Weapons.weaponIGsword;
import b.OOMOD.Weapons.weaponSIaxe;
import b.OOMOD.Weapons.weaponSIdagger;
import b.OOMOD.Weapons.weaponSIsword;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
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;
import b.OOMOD.Ingots.*;
import b.OOMOD.ore.CBore;



//mod info
@Mod(modid = "OOMOD", name = "Odysessues' Oddity", version = "1.0.0")
//client server 
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class OOmain{
//Weapon defining
public static Item CBsword;
public static Item CBdagger;
public static Item CBhammer;
public static Item SIsword;
public static Item SIdagger;
public static Item SIaxe;
public static Item IGsword;
public static Item IGknife;

//define weapon material
public static EnumToolMaterial SWORD = EnumHelper.addToolMaterial("SWORD", 0, 2134, 8.0F, 11.0F, 10);
public static EnumToolMaterial DAGGER = EnumHelper.addToolMaterial("DAGGER", 0, 2134, 8.0F, 5.0F, 10);
public static EnumToolMaterial HAMMER = EnumHelper.addToolMaterial("HAMMER", 0, 2134, 8.0F, 15.0F, 10);


//Ingot Defining
public static Item CBingot;
public static Item SIingot;
public static Item IGingot;

//Ore Defining
public static Block CBore;



//event handler
@EventHandler
public void Load(FMLPreInitializationEvent Event){

	//Weapon Settings
	CBsword = new weaponCBsword(5000, SWORD).setUnlocalizedName("OOmod:CBsword ");
	CBdagger = new weaponCBdagger(5001, DAGGER).setUnlocalizedName("OOmod:CBdagger ");
	CBhammer = new weaponCBhammer(5002, HAMMER).setUnlocalizedName("OOmod:CBhammer ");
	SIsword = new weaponSIsword(5003, SWORD).setUnlocalizedName("OOmod:SIsword ");
	SIdagger = new weaponSIdagger(5004, DAGGER).setUnlocalizedName("OOmod:SIdagger ");
	SIaxe = new weaponSIaxe(5005, HAMMER).setUnlocalizedName("OOmod:SIaxe ");
	IGsword = new weaponIGsword(5006, SWORD).setUnlocalizedName("OOmod:IGsword ");
	IGknife = new weaponIGknife(5007, DAGGER).setUnlocalizedName("OOmod:IGdagger ");

	//ingot setting
	CBingot = new CBingot(5008).setUnlocalizedName("OOmod:CBingot");
	SIingot = new SIingot(5009).setUnlocalizedName("OOmod:SIingot");
	IGingot = new IGingot(5010).setUnlocalizedName("OOmod:IGingot");

	//ore settings
	CBore = new b.OOMOD.ore.CBore(5011, Material.rock).setUnlocalizedName("OOmod:CBore");


	//Weapon Game Register
	GameRegistry.registerItem(CBsword, "CBsword");
	GameRegistry.registerItem(CBdagger, "CBdagger");
	GameRegistry.registerItem(CBhammer, "CBhammer");
	GameRegistry.registerItem(SIsword, "SIsword");
	GameRegistry.registerItem(SIdagger, "SIdagger");
	GameRegistry.registerItem(SIaxe, "SIaxe");
	GameRegistry.registerItem(IGsword, "IGsword");
	GameRegistry.registerItem(IGknife, "IGknife");

	//Ingot Game Register
	GameRegistry.registerItem(CBingot, "CBingot");
	GameRegistry.registerItem(SIingot, "SIingot");
	GameRegistry.registerItem(IGingot, "IGingot");

	//Ore Game Register
	GameRegistry.registerBlock(CBore, "CBore");




	//Weapon Language Register
	LanguageRegistry.addName(CBsword, "Celestial Bronze Sword");
	LanguageRegistry.addName(CBdagger, "Celestial Bronze Dagger");
	LanguageRegistry.addName(CBhammer, "Celestial Bronze Hammer");
	LanguageRegistry.addName(SIsword, "Stygian Iron Sword");
	LanguageRegistry.addName(SIdagger, "Stygian Iron Dagger");
	LanguageRegistry.addName(SIaxe, "Stygian Iron Axe");
	LanguageRegistry.addName(IGsword, "Imperial Gold Sword");
	LanguageRegistry.addName(IGknife, "Imperial Gold Dagger");

	//Ingot Language Register
	LanguageRegistry.addName(CBingot, "Celestial Bronze Ingot");
	LanguageRegistry.addName(SIingot, "Stygian Iron Ingot");
	LanguageRegistry.addName(IGingot, "Imperial Gold Ingot");

	//Ore Language Register
	LanguageRegistry.addName(CBore, "Celestial Bronze Ore");


	//weapon recipes
	GameRegistry.addRecipe(new ItemStack(CBsword), new Object[] {" C "," C "," S ", 'C', CBingot, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(CBdagger), new Object[] {"   "," C "," S ", 'C', CBingot, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(CBhammer), new Object[] {"CCC"," S "," S ", 'C', CBingot, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(SIsword), new Object[] {" I "," I "," S ", 'I', SIingot, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(SIdagger), new Object[] {"   "," I "," S ", 'I', SIingot, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(SIaxe), new Object[] {"III"," S "," S ", 'I', SIingot, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(IGsword), new Object[] {" G "," G "," S ", 'G', IGingot, 'S', Item.stick});
	GameRegistry.addRecipe(new ItemStack(IGknife), new Object[] {"   "," G "," S ", 'G', IGingot, 'S', Item.stick});

}}


 

 

Block Code

package b.OOMOD.ore;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
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 CBore extends Block{

public CBore(int par1, Material par2Material) {
	super(par1, par2Material);
	this.setCreativeTab(CreativeTabs.tabBlock);
	this.setHardness(10.0F);
	this.setResistance(10.0F);
	this.setLightValue(0.5F);}




	@SideOnly(Side.CLIENT)
	public void registerIcons(IconRegister par1IconRegister){
	this.blockIcon = par1IconRegister.registerIcon("OOmod:CBore");
}

}

 

Console Output

 

Jan 20, 2014 6:28:23 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Jan 20, 2014 6:28:23 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Jan 20, 2014 6:28:23 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.49.965 for Minecraft 1.6.4 loading

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Java is Java HotSpot Client VM, version 1.7.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

2014-01-20 18:28:23 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

2014-01-20 18:28:23 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg

2014-01-20 18:28:23 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!

2014-01-20 18:28:25 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

2014-01-20 18:28:25 [iNFO] [sTDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg

2014-01-20 18:28:25 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

2014-01-20 18:28:25 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}

2014-01-20 18:28:27 [iNFO] [Minecraft-Client] Setting user: Player840

2014-01-20 18:28:28 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2014-01-20 18:28:30 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2014-01-20 18:28:32 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2014-01-20 18:28:32 [iNFO] [sTDOUT] MinecraftForge v9.11.1.965 Initialized

2014-01-20 18:28:32 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.965 Initialized

2014-01-20 18:28:32 [iNFO] [sTDOUT] Replaced 111 ore recipies

2014-01-20 18:28:32 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2014-01-20 18:28:33 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Matt\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\jars\config\logging.properties

2014-01-20 18:28:33 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2014-01-20 18:28:33 [iNFO] [ForgeModLoader] Searching C:\Users\Matt\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\jars\mods for mods

2014-01-20 18:28:37 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2014-01-20 18:28:37 [iNFO] [mcp] Activating mod mcp

2014-01-20 18:28:37 [iNFO] [FML] Activating mod FML

2014-01-20 18:28:37 [iNFO] [Forge] Activating mod Forge

2014-01-20 18:28:37 [iNFO] [OOMOD] Activating mod OOMOD

2014-01-20 18:28:37 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2014-01-20 18:28:37 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2014-01-20 18:28:37 [WARNING] [Odysessues' Oddity] Mod Odysessues' Oddity is missing a pack.mcmeta file, things may not work well

2014-01-20 18:28:37 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Odysessues' Oddity

2014-01-20 18:28:37 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2014-01-20 18:28:37 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2014-01-20 18:28:38 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2014-01-20 18:28:38 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

2014-01-20 18:28:38 [sEVERE] [ForgeModLoader]

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized

Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized

OOMOD{1.0.0} [Odysessues' Oddity] (bin) Unloaded->Constructed->Errored

2014-01-20 18:28:38 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2014-01-20 18:28:38 [sEVERE] [ForgeModLoader] Caught exception from OOMOD

java.lang.ArrayIndexOutOfBoundsException: 5011

at net.minecraft.block.Block.<init>(Block.java:347)

at b.OOMOD.ore.CBore.<init>(CBore.java:14)

at b.OOMOD.OOmain.Load(OOmain.java:81)

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:545)

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:313)

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.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

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:313)

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:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

at net.minecraft.client.Minecraft.run(Minecraft.java:808)

at net.minecraft.client.main.Main.main(Main.java:93)

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 net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-01-20 18:28:38 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----

2014-01-20 18:28:38 [iNFO] [sTDOUT] // Quite honestly, I wouldn't worry myself about that.

2014-01-20 18:28:38 [iNFO] [sTDOUT]

2014-01-20 18:28:38 [iNFO] [sTDOUT] Time: 20/01/14 18:28

2014-01-20 18:28:38 [iNFO] [sTDOUT] Description: Initializing game

2014-01-20 18:28:38 [iNFO] [sTDOUT]

2014-01-20 18:28:38 [iNFO] [sTDOUT] java.lang.ArrayIndexOutOfBoundsException: 5011

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.block.Block.<init>(Block.java:347)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at b.OOMOD.ore.CBore.<init>(CBore.java:14)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at b.OOMOD.OOmain.Load(OOmain.java:81)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-01-20 18:28:38 [iNFO] [sTDOUT]

2014-01-20 18:28:38 [iNFO] [sTDOUT]

2014-01-20 18:28:38 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:

2014-01-20 18:28:38 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------

2014-01-20 18:28:38 [iNFO] [sTDOUT]

2014-01-20 18:28:38 [iNFO] [sTDOUT] -- Head --

2014-01-20 18:28:38 [iNFO] [sTDOUT] Stacktrace:

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.block.Block.<init>(Block.java:347)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at b.OOMOD.ore.CBore.<init>(CBore.java:14)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at b.OOMOD.OOmain.Load(OOmain.java:81)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

2014-01-20 18:28:38 [iNFO] [sTDOUT]

2014-01-20 18:28:38 [iNFO] [sTDOUT] -- Initialization --

2014-01-20 18:28:38 [iNFO] [sTDOUT] Details:

2014-01-20 18:28:38 [iNFO] [sTDOUT] Stacktrace:

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

2014-01-20 18:28:38 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-01-20 18:28:38 [iNFO] [sTDOUT]

2014-01-20 18:28:38 [iNFO] [sTDOUT] -- System Details --

2014-01-20 18:28:38 [iNFO] [sTDOUT] Details:

2014-01-20 18:28:38 [iNFO] [sTDOUT] Minecraft Version: 1.6.4

2014-01-20 18:28:38 [iNFO] [sTDOUT] Operating System: Windows 7 (x86) version 6.1

2014-01-20 18:28:38 [iNFO] [sTDOUT] Java Version: 1.7.0_45, Oracle Corporation

2014-01-20 18:28:38 [iNFO] [sTDOUT] Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

2014-01-20 18:28:38 [iNFO] [sTDOUT] Memory: 857451448 bytes (817 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)

2014-01-20 18:28:38 [iNFO] [sTDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

2014-01-20 18:28:38 [iNFO] [sTDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

2014-01-20 18:28:38 [iNFO] [sTDOUT] Suspicious classes: FML and Forge are installed

2014-01-20 18:28:38 [iNFO] [sTDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

2014-01-20 18:28:38 [iNFO] [sTDOUT] FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active

2014-01-20 18:28:38 [iNFO] [sTDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

2014-01-20 18:28:38 [iNFO] [sTDOUT] FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized

2014-01-20 18:28:38 [iNFO] [sTDOUT] Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized

2014-01-20 18:28:38 [iNFO] [sTDOUT] OOMOD{1.0.0} [Odysessues' Oddity] (bin) Unloaded->Constructed->Errored

2014-01-20 18:28:38 [iNFO] [sTDOUT] Launched Version: 1.6

2014-01-20 18:28:38 [iNFO] [sTDOUT] LWJGL: 2.9.0

2014-01-20 18:28:38 [iNFO] [sTDOUT] OpenGL: GeForce 9800 GTX/9800 GTX+/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation

2014-01-20 18:28:38 [iNFO] [sTDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'

2014-01-20 18:28:38 [iNFO] [sTDOUT] Type: Client (map_client.txt)

2014-01-20 18:28:38 [iNFO] [sTDOUT] Resource Pack: Default

2014-01-20 18:28:38 [iNFO] [sTDOUT] Current Language: English (US)

2014-01-20 18:28:38 [iNFO] [sTDOUT] Profiler Position: N/A (disabled)

2014-01-20 18:28:38 [iNFO] [sTDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

2014-01-20 18:28:38 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\User\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\jars\.\crash-reports\crash-2014-01-20_18.28.38-client.txt

 

 

Link to comment
Share on other sites

java.lang.ArrayIndexOutOfBoundsException: 5011

  at net.minecraft.block.Block.<init>(Block.java:347)

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

public static final Block[] blocksList = new Block[4096];

That means you can only have block ids from 0-4095

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

ah ok, thanks a lot.  :) is there an actual reason why block ids have a smaller range than item ids?

 

Yes.  Because all blocks are items.  Ergo there needs to be more slots for items than for blocks.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Update: I managed to make the item not disappear after crafting, but it doesn't remove any durability. import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.enchantment.Enchantments; import net.minecraft.enchantment.UnbreakingEnchantment; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class NuggetHammer extends Item { private boolean damage; public NuggetHammer(Properties p_i48487_1_) { super(p_i48487_1_); } @Override public int getMaxDamage(ItemStack stack) { return 54 - 1; } public boolean isBarVisible(ItemStack stack) { return false; } @Override public ItemStack getContainerItem(ItemStack stack) { ItemStack copy = stack.copy(); copy.setCount(1); if (!this.damage) return copy; int unbreaking = EnchantmentHelper.getItemEnchantmentLevel(Enchantments.UNBREAKING, stack); for (int i = 0; i < unbreaking; i++) { if (UnbreakingEnchantment.shouldIgnoreDurabilityDrop(stack, unbreaking, random)) return copy; } copy.setDamageValue(stack.getDamageValue() + 1); if (copy.getDamageValue() > stack.getMaxDamage()) return ItemStack.EMPTY; return copy; } }  
    • I cannot find the answer anywhere public static void onPlayerConsumeXp(PlayerXpEvent.PickupXp event){ if(event.getEntity().getMainHandItem().getAllEnchantments().get(*value i need*) != null){ int shorthand = event.getEntity().getMainHandItem().getAllEnchantments().get(*value i need*); I am trying to get my custom enchant inside that *value i need*, I have tried using strings and Enchantments. does not show my enchantment. This is my enchantment class package net.test.tutorialmod.enchants; import net.minecraft.world.entity.EquipmentSlot; import net.minecraft.world.item.enchantment.Enchantment; import net.minecraft.world.item.enchantment.EnchantmentCategory; public class clever extends Enchantment { public clever(Rarity pRarity, EnchantmentCategory pCategory, EquipmentSlot... pApplicableSlots) { super(pRarity, pCategory, pApplicableSlots); } @Override public int getMaxLevel() { return 10; } @Override public int getMinLevel() { return 1; } }  What am i doing wrong?  
    • I had this same issue, it was one of the mods I had installed, some mods seem to break with certain versions of forge and cause others to break as well, trial and error different mods till you find the broken one.  
    • Hi, I'm asking for your help because I can't figure out how to make it so that when an item is crafted on the Crafting Table, it returns the item to the player's inventory and makes the item lose durability. I've tried looking everywhere without success. Like for the crafting of the cake which returns the empty bucket to the player, but also makes it lose durability.  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.