Jump to content

Recommended Posts

Posted

suddenly i have a wierd crash and cant figger out what wrong

 

 

2014-01-22 20:25:11 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
2014-01-22 20:25:11 [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
CodeChickenCore{0.9.0.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized
NotEnoughItems{1.6.1.8} [Not Enough Items] (NotEnoughItems 1.6.1.8 (1).jar) Unloaded->Constructed->Pre-initialized
indestructibletools{1.1.0} [indestructible Tools] (bin) Unloaded->Constructed->Errored
2014-01-22 20:25:11 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2014-01-22 20:25:11 [sEVERE] [ForgeModLoader] Caught exception from indestructibletools
java.lang.ArrayIndexOutOfBoundsException: 9117
at net.minecraftforge.common.Configuration.getBlockInternal(Configuration.java:160)
at net.minecraftforge.common.Configuration.getBlock(Configuration.java:119)
at net.minecraftforge.common.Configuration.getBlock(Configuration.java:116)
at denbukki.indestructibleTools.indestructibletools.preInit(indestructibletools.java:239)
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-22 20:25:11 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----
2014-01-22 20:25:11 [iNFO] [sTDOUT] // Ooh. Shiny.
2014-01-22 20:25:11 [iNFO] [sTDOUT] 
2014-01-22 20:25:11 [iNFO] [sTDOUT] Time: 22-1-14 20:25
2014-01-22 20:25:11 [iNFO] [sTDOUT] Description: Initializing game
2014-01-22 20:25:11 [iNFO] [sTDOUT] 
2014-01-22 20:25:11 [iNFO] [sTDOUT] java.lang.ArrayIndexOutOfBoundsException: 9117
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraftforge.common.Configuration.getBlockInternal(Configuration.java:160)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraftforge.common.Configuration.getBlock(Configuration.java:119)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraftforge.common.Configuration.getBlock(Configuration.java:116)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at denbukki.indestructibleTools.indestructibletools.preInit(indestructibletools.java:239)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 
2014-01-22 20:25:11 [iNFO] [sTDOUT] 
2014-01-22 20:25:11 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2014-01-22 20:25:11 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2014-01-22 20:25:11 [iNFO] [sTDOUT] 
2014-01-22 20:25:11 [iNFO] [sTDOUT] -- Head --
2014-01-22 20:25:11 [iNFO] [sTDOUT] Stacktrace:
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraftforge.common.Configuration.getBlockInternal(Configuration.java:160)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraftforge.common.Configuration.getBlock(Configuration.java:119)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraftforge.common.Configuration.getBlock(Configuration.java:116)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at denbukki.indestructibleTools.indestructibletools.preInit(indestructibletools.java:239)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 
2014-01-22 20:25:11 [iNFO] [sTDOUT] -- Initialization --
2014-01-22 20:25:11 [iNFO] [sTDOUT] Details:
2014-01-22 20:25:11 [iNFO] [sTDOUT] Stacktrace:
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-01-22 20:25:11 [iNFO] [sTDOUT] 

Posted

base i have no saperate clas for config

 

package denbukki.indestructibleTools; //Package directory
/*
* Basic importing
*/
import java.net.Proxy;

import net.minecraft.block.Block;
import net.minecraft.block.BlockHalfSlab;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemSlab;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.Property;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
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;
import denbukki.indestructibleTools.armor.carbyneArmor;
import denbukki.indestructibleTools.blocks.blockhardwoodSlab;
import denbukki.indestructibleTools.blocks.blockhardwoodleaves;
import denbukki.indestructibleTools.blocks.blockhardwoodlog;
import denbukki.indestructibleTools.blocks.blockhardwoodsapling;
import denbukki.indestructibleTools.blocks.blockhardwoodstairs;
import denbukki.indestructibleTools.blocks.blockhellgemblock;
import denbukki.indestructibleTools.blocks.blockhellgemslab;
import denbukki.indestructibleTools.blocks.blockhellgemstairs;
import denbukki.indestructibleTools.blocks.blockhellore;
import denbukki.indestructibleTools.blocks.blockicegemblock;
import denbukki.indestructibleTools.blocks.blockicegemslab;
import denbukki.indestructibleTools.blocks.blockicegemstairs;
import denbukki.indestructibleTools.blocks.blockicyore;
import denbukki.indestructibleTools.blocks.blockhardwoodplanks;
import denbukki.indestructibleTools.blocks.carbyneSlab;
import denbukki.indestructibleTools.blocks.carbyneblock;
import denbukki.indestructibleTools.blocks.carbyneore; 
import denbukki.indestructibleTools.blocks.carbynestair;
import denbukki.indestructibleTools.items.HammerCraftingHandler;
import denbukki.indestructibleTools.items.itemhammer;
import denbukki.indestructibleTools.items.itemhellgem;
import denbukki.indestructibleTools.items.itemicegem;
import denbukki.indestructibleTools.items.items;
import denbukki.indestructibleTools.proxys.CommonProxy;
import denbukki.indestructibleTools.tools.Axe;
import denbukki.indestructibleTools.tools.HellGemPickaxe;
import denbukki.indestructibleTools.tools.HellGemSword;
import denbukki.indestructibleTools.tools.Hoe;
import denbukki.indestructibleTools.tools.Pickaxe;
import denbukki.indestructibleTools.tools.Shovel;
import denbukki.indestructibleTools.tools.Sword;
import denbukki.indestructibleTools.tools.iceGemSword;
import denbukki.indestructibleTools.worldgen.WorldGenHellOre;
import denbukki.indestructibleTools.worldgen.WorldGencarbyneore;
import denbukki.indestructibleTools.worldgen.WorldGenicyore;
import denbukki.indestructibleTools.worldgen.worldgenhardwood;

/*
* Basic needed forge stuff
*/
@Mod(modid="indestructibletools",name="Indestructible Tools",version="1.1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=true)



public class indestructibletools {
 @Instance(value = "indestructibletools")
public static indestructibletools instance;
public static final String modid = "indestructibletools" ;

@SidedProxy(clientSide="denbukki.indestructibleTools.proxys.ClientProxy", serverSide="denbukki.indestructibleTools.proxys.CommonProxy")
public static CommonProxy proxys;


        

public static boolean someConfigFlag;
//items
public static int carbyneID;
public static int carbyneshardID;
public static int rawcarbyneID;
public static int itemhellgemID;
public static int itemicegemID;
public static int itemhammerddiamondsID;
public static int itemHardwoodStickID;

//blocks
public static int carbyneoreID;//
public static int carbyneblockID;//
public static int carbyneblockhalfslabID;//
public static int carbyneblockdubbleslabID;//
public static int carbyneblockstairID;//
public static int blockhelloreID;//
public static int blockhellgemblockID;//
public static int blockicyoreID;//
public static int blockicegemblockID;//
public static int blockhellgemhalfslabID;//
public static int blockhellgemdubbleslabID;//
public static int blockhellgemstairsID;//
public static int blockicegemstairsID;//
public static int blockicegemhalfslabID;//
public static int blockicegemdubbleslabID;//
public static int blockhardwoodleavesID;//
public static int blockhardwoodlogID;//
public static int blockhardwoodsaplingID;//
public static int blockhardwoodplanksID;//
public static int blockhardwoodhalfSlabID;//
public static int blockhardwooddubbleSlabID;//
public static int blockhardwoodstairsID;//

//armor
public static int carbyneChestplateID;//
public static int carbyneBootsID;//
public static int carbyneLeggingsID;//
public static int carbyneHelmetID;//



//tools

public static int carbyneAxeID;//
public static int carbyneShovelID;//
public static int carbynePickaxeID;//
public static int carbyneHoeID;//
public static int carbyneSwordID;//

public static int hellgemSwordID;//
public static int hellgemPickaxeID;//

public static int icegemSwordID;//



public static int itemhammerID;

/*
* ToolMaterial
*/
//Telling forge that we are creating these


//items
public static Item carbyne;
public static Item carbyneshard;
public static Item rawcarbyne;
public static Item itemhellgem;
public static Item itemicegem;
public static Item itemhammerddiamonds;
public static Item itemHardwoodStick;

//blocks
public static Block carbyneore;
public static Block carbyneblock;
public static Block carbyneblockhalfslab;
public static Block carbyneblockdubbleslab;
public static Block carbyneblockstair;
public static Block blockhellore;
public static Block blockhellgemblock;
public static Block blockicyore;
public static Block blockicegemblock;
public static Block blockhellgemhalfslab;
public static Block blockhellgemdubbleslab;
public static Block blockhellgemstairs;
public static Block blockicegemstairs;
public static Block blockicegemhalfslab;
public static Block blockicegemdubbleslab;
public static Block carbynechest;
public static Block blockhardwoodleaves;
public static Block blockhardwoodlog;
public static Block blockhardwoodsapling;
public static Block blockhardwoodplanks;
public static Block blockhardwoodhalfSlab;
public static Block blockhardwooddubbleSlab;
public static Block blockhardwoodstairs;


//armor
public static Item carbyneChestplate;
public static Item carbyneBoots;
public static Item carbyneLeggings;
public static Item carbyneHelmet;
public static EnumArmorMaterial carbyneArmor = EnumHelper.addArmorMaterial("carbyneArmor", -1, new int[] { 3, 7, 6, 3 }, 30);



//tools
public static EnumToolMaterial carbyneTool = EnumHelper.addToolMaterial("carbyneTool", 3, 0, 9.0F, 3, 10);
public static Item carbyneAxe;
public static Item carbyneShovel;
public static Item carbynePickaxe;
public static Item carbyneHoe;
public static Item carbyneSword;
public static EnumToolMaterial hellgemTool = EnumHelper.addToolMaterial("hellgemTool", 3, 251, 9.0F, 3, 10);
public static Item hellgemSword;
public static Item hellgemPickaxe;
public static EnumToolMaterial icegemTool = EnumHelper.addToolMaterial("icegemTool", 3, 251, 9.0F, 3, 10);
public static Item icegemSword;



public static Item itemhammer;
//



//creative tab
public static CreativeTabs indestructibleTools = new indestructibleToolsTab(CreativeTabs.getNextID(), "indestructible Tools");
//Declaring Init

//config
@PreInit
public void preInit(FMLPreInitializationEvent event) {
        Configuration config = new Configuration(event.getSuggestedConfigurationFile());

        config.load();

        carbyneID = config.getItem("carbyne", 5000).getInt();
        carbyneshardID = config.getItem("carbyneshard", 5001).getInt();
        rawcarbyneID = config.getItem("rawcarbyne", 5002).getInt();
        itemhellgemID = config.getItem("itemhellgem", 5003).getInt();
        itemicegemID = config.getItem("itemicegem", 5004).getInt();
        itemhammerddiamondsID = config.getItem("itemhammerddiamonds", 5005).getInt();
        itemHardwoodStickID = config.getItem("itemHardwoodStick", 5006).getInt();
        carbyneoreID = config.getBlock("carbyneore", 9117).getInt();
        carbyneblockID = config.getBlock("carbyneblock", 5008).getInt();
        carbyneblockhalfslabID = config.getBlock("carbyneblockhalfslab", 5009).getInt();
        carbyneblockdubbleslabID = config.getBlock("carbyneblockdubbleslab", 5010).getInt();
        carbyneblockstairID = config.getBlock("carbyneblockstair", 5011).getInt();
        blockhelloreID = config.getBlock("blockhellore", 5012).getInt();
        blockhellgemblockID = config.getBlock("blockhellgemblock", 5013).getInt();
        blockicyoreID = config.getBlock("blockicyore", 5014).getInt();
        blockicegemblockID = config.getBlock("blockicegemblock", 5015).getInt();
        blockhellgemhalfslabID = config.getBlock("blockhellgemhalfslab", 5016).getInt();
        blockhellgemdubbleslabID = config.getBlock("blockhellgemdubbleslab", 5017).getInt();
        blockhellgemstairsID = config.getBlock("blockhellgemstairs", 5018).getInt();
        blockicegemstairsID = config.getBlock("blockicegemstairs", 5019).getInt();
        blockicegemhalfslabID = config.getBlock("blockicegemhalfslab", 5050).getInt();
        blockicegemdubbleslabID = config.getBlock("blockicegemdubbleslab", 5021).getInt();
        blockhardwoodleavesID = config.getBlock("blockhardwoodleaves", 5022).getInt();
        blockhardwoodlogID = config.getBlock("blockhardwoodlog", 5023).getInt();
        blockhardwoodsaplingID = config.getBlock("blockhardwoodsapling", 5024).getInt();
        blockhardwoodplanksID = config.getBlock("blockhardwoodplanks", 5025).getInt();
        blockhardwoodhalfSlabID = config.getBlock("blockhardwoodhalfSlab", 5026).getInt();
        blockhardwooddubbleSlabID = config.getBlock("blockhardwooddubbleSlab", 5027).getInt();
        blockhardwoodstairsID = config.getBlock("blockhardwoodstairs", 5028).getInt();
        carbyneChestplateID = config.getItem("carbyneChestplate", 5029).getInt();
        carbyneBootsID = config.getItem("carbyneBoots", 5050).getInt();
        carbyneLeggingsID = config.getItem("carbyneLeggings", 5031).getInt();
        carbyneHelmetID = config.getItem("carbyneHelmet", 5032).getInt();
        carbyneAxeID = config.getItem("carbyneAxe", 5033).getInt();
        carbyneShovelID = config.getItem("carbyneShovel", 5034).getInt();
        carbynePickaxeID = config.getItem("carbynePickaxe", 5035).getInt();
        carbyneHoeID = config.getItem("carbyneHoe", 5036).getInt();
        carbyneSwordID = config.getItem("carbyneSword", 5037).getInt();
        hellgemSwordID = config.getItem("hellgemSword", 5038).getInt();
        hellgemPickaxeID = config.getItem("hellgemPickaxe", 5039).getInt();
        icegemSwordID = config.getItem("icegemSword", 5040).getInt();
        itemhammerID = config.getItem("itemhammer", 5041).getInt();


        someConfigFlag = config.get(Configuration.CATEGORY_GENERAL, "SomeConfigFlag", false).getBoolean(false);
        


        config.save();
}


@Init
public void load(FMLInitializationEvent event){

proxys.register();


// define items
carbyne = new items(carbyneID).setUnlocalizedName("carbyne");
carbyneshard = new items(carbyneshardID).setUnlocalizedName("carbyneshard");
rawcarbyne = new items(rawcarbyneID).setUnlocalizedName("rawcarbyne");
itemhellgem = new itemhellgem(itemhellgemID).setUnlocalizedName("itemhellgem");
itemicegem = new itemicegem(itemicegemID).setUnlocalizedName("itemicegem");
itemhammer = new itemhammer(itemhammerID).setUnlocalizedName("itemhammer");

itemHardwoodStick = new items(itemHardwoodStickID).setUnlocalizedName("itemHardwoodStick");

itemhammerddiamonds = new items(itemhammerddiamondsID).setUnlocalizedName("itemhammerddiamonds");


// define blocks
carbyneore = new carbyneore(carbyneoreID, "carbyneore").setUnlocalizedName("carbyneore").setHardness(5.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F);
GameRegistry.registerBlock(carbyneore, "carbyneore");


carbyneblock = new carbyneblock(carbyneblockID, "carbyneblock").setUnlocalizedName("carbyneblock").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10000.0F);
GameRegistry.registerBlock(carbyneblock, ItemBlock.class, "carbyneblock");



carbyneblockhalfslab = new carbyneSlab(carbyneblockhalfslabID, false, Material.rock).setUnlocalizedName("carbyneblockhalfslab").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10000.0F);
carbyneblockdubbleslab = new carbyneSlab(carbyneblockdubbleslabID, true, Material.rock).setUnlocalizedName("carbyneblockdubbleslab").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10000.0F);
GameRegistry.registerBlock(carbyneblockhalfslab, "carbyneblockhalfslab");
GameRegistry.registerBlock(carbyneblockdubbleslab, "carbyneblockdubbleslab");

carbyneblockstair = new carbynestair(carbyneblockstairID, carbyneblock); 
GameRegistry.registerBlock(carbyneblockstair, "carbyneblockstair");




blockhellore = new blockhellore(blockhelloreID, "blockhellore").setUnlocalizedName("blockhellore").setHardness(5.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F).setLightValue(0.8F);
GameRegistry.registerBlock(blockhellore, "blockhellore");

blockhellgemblock = new blockhellgemblock(blockhellgemblockID, "blockhellgemblock").setUnlocalizedName("blockhellgemblock").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F).setLightValue(0.9F);
GameRegistry.registerBlock(blockhellgemblock, "blockhellgemblock");

blockicyore = new blockicyore(blockicyoreID, "blockicyore").setUnlocalizedName("blockicyore").setHardness(5.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F);
GameRegistry.registerBlock(blockicyore, "blockicyore");

blockicegemblock = new blockicegemblock(blockicegemblockID, "blockicegemblock").setUnlocalizedName("blockicegemblock").setHardness(5.0F).setStepSound(Block.soundGlassFootstep).setResistance(10.0F);
GameRegistry.registerBlock(blockicegemblock, "blockicegemblock");

blockhellgemhalfslab = new blockhellgemslab(blockhellgemhalfslabID, false, Material.rock).setUnlocalizedName("blockhellgemhalfslab").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
blockhellgemdubbleslab = new blockhellgemslab(blockhellgemdubbleslabID, true, Material.rock).setUnlocalizedName("blockhellgemdubbleslab").setHardness(5.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(blockhellgemhalfslab, "blockhellgemhalfslab");
GameRegistry.registerBlock(blockhellgemdubbleslab, "blockhellgemdubbleslab");


blockhellgemstairs = new blockhellgemstairs(blockhellgemstairsID, blockhellgemblock); 
GameRegistry.registerBlock(blockhellgemstairs, "blockhellgemstairs");

blockicegemstairs = new blockicegemstairs(blockicegemstairsID, blockicegemblock); 
GameRegistry.registerBlock(blockicegemstairs, "blockicegemstairs");

blockicegemhalfslab = new blockicegemslab(blockicegemhalfslabID, false, Material.rock).setUnlocalizedName("blockicegemhalfslab").setHardness(5.0F).setStepSound(Block.soundGlassFootstep).setResistance(10.0F);
blockicegemdubbleslab = new blockicegemslab(blockicegemdubbleslabID, true, Material.rock).setUnlocalizedName("blockicegemdubbleslab").setHardness(5.0F).setStepSound(Block.soundGlassFootstep).setResistance(10.0F);
GameRegistry.registerBlock(blockicegemhalfslab, "blockicegemhalfslab");
GameRegistry.registerBlock(blockicegemdubbleslab, "blockicegemdubbleslab");

blockhardwoodleaves = new blockhardwoodleaves(blockhardwoodleavesID).setCreativeTab(indestructibleTools).setLightOpacity(1000).setUnlocalizedName("blockhardwoodleaves"); 
GameRegistry.registerBlock(blockhardwoodleaves, "blockhardwoodleaves");
blockhardwoodlog = new blockhardwoodlog(blockhardwoodlogID).setCreativeTab(indestructibleTools).setUnlocalizedName("blockhardwoodlog"); 
GameRegistry.registerBlock(blockhardwoodlog, "blockhardwoodlog");
blockhardwoodsapling = new blockhardwoodsapling(blockhardwoodsaplingID).setCreativeTab(indestructibleTools).setUnlocalizedName("blockhardwoodsapling"); 
GameRegistry.registerBlock(blockhardwoodsapling, "blockhardwoodsapling");

blockhardwoodplanks = new blockhardwoodplanks(blockhardwoodplanksID, "blockhardwoodplanks").setUnlocalizedName("blockhardwoodplanks").setHardness(5.0F).setResistance(10.0F).setStepSound(Block.soundWoodFootstep);
GameRegistry.registerBlock(blockhardwoodplanks, "blockhardwoodplanks");


blockhardwoodhalfSlab = new blockhardwoodSlab(blockhardwoodhalfSlabID, false, Material.wood).setUnlocalizedName("blockhardwoodhalfSlab").setHardness(5.0F).setStepSound(Block.soundWoodFootstep);
blockhardwooddubbleSlab = new blockhardwoodSlab(blockhardwooddubbleSlabID, true, Material.wood).setUnlocalizedName("blockhardwooddubbleSlab").setHardness(5.0F).setStepSound(Block.soundWoodFootstep);
GameRegistry.registerBlock(blockhardwoodhalfSlab, "blockhardwoodhalfSlab");
GameRegistry.registerBlock(blockhardwooddubbleSlab, "blockhardwooddubbleSlab");

blockhardwoodstairs = new blockhardwoodstairs(blockhardwoodstairsID, blockhardwoodplanks); 
GameRegistry.registerBlock(blockhardwoodstairs, "blockhardwoodstairs");
//define tools 
carbyneAxe = new Axe(carbyneAxeID, carbyneTool).setUnlocalizedName("carbyneAxe"); 
carbyneShovel = new Shovel(carbyneShovelID, carbyneTool).setUnlocalizedName("carbyneShovel");
carbynePickaxe = new Pickaxe(carbynePickaxeID, carbyneTool).setUnlocalizedName("carbynePickaxe");
carbyneHoe = new Hoe(carbyneHoeID, carbyneTool).setUnlocalizedName("carbyneHoe");
carbyneSword = new Sword(carbyneSwordID, carbyneTool).setUnlocalizedName("carbyneSword");

hellgemSword = new HellGemSword(hellgemSwordID, hellgemTool).setUnlocalizedName("hellgemSword");
hellgemPickaxe = new HellGemPickaxe(hellgemPickaxeID, hellgemTool).setUnlocalizedName("hellgemPickaxe").setCreativeTab(indestructibleTools);


icegemSword = new iceGemSword(3075, icegemTool).setUnlocalizedName("icegemSword");

worldgenhardwood worldgenhardwood = new worldgenhardwood();

//define armor
carbyneHelmet = new carbyneArmor(hellgemPickaxeID, carbyneArmor, 5, 0).setUnlocalizedName("carbyneHelmet").setCreativeTab(indestructibleTools);
carbyneChestplate = new carbyneArmor(carbyneChestplateID, carbyneArmor, 5, 1).setUnlocalizedName("carbyneChestplate").setCreativeTab(indestructibleTools);
carbyneLeggings = new carbyneArmor(carbyneLeggingsID, carbyneArmor, 5, 2).setUnlocalizedName("carbyneLeggings").setCreativeTab(indestructibleTools);
carbyneBoots = new carbyneArmor(carbyneBootsID, carbyneArmor, 5, 3).setUnlocalizedName("carbyneBoots").setCreativeTab(indestructibleTools);

//evnet


//oreDic
OreDictionary.registerOre("oreCarbyne", carbyneore);
OreDictionary.registerOre("gemCarbyne", carbyne);
OreDictionary.registerOre("blockCarbyne", carbyneblock);
OreDictionary.registerOre("plankWood", blockhardwoodplanks);
OreDictionary.registerOre("slabWood", blockhardwoodhalfSlab);
OreDictionary.registerOre("logWood", blockhardwoodlog);
OreDictionary.registerOre("stickWood", itemHardwoodStick);

//adding names
//items

LanguageRegistry.addName(carbyne, "Carbyne");
LanguageRegistry.addName(carbyneshard, "Carbyne Shard");
LanguageRegistry.addName(rawcarbyne, "Raw Carbyne");
LanguageRegistry.addName(itemhellgem, "Hell Gem");
LanguageRegistry.addName(itemicegem, "Ice Gem");
LanguageRegistry.addName(itemhammerddiamonds, "Hammerd Diamonds");
LanguageRegistry.addName(itemHardwoodStick, "Hardwood Stick");


//blocks
LanguageRegistry.addName(carbyneore, "Carbyne Ore");
LanguageRegistry.addName(carbyneblock, "Block Of Carbyne");
LanguageRegistry.addName(carbyneblockhalfslab, "Carbyne Block Slab");
LanguageRegistry.addName(carbyneblockdubbleslab, "Carbyne Block Slab");
LanguageRegistry.addName(carbyneblockstair, "Carbyne Block Stairs");
LanguageRegistry.addName(blockhellore, "Hell Ore");
LanguageRegistry.addName(blockhellgemblock, "Hell Gem Block");
LanguageRegistry.addName(blockicegemblock, "Ice Gem Block");
LanguageRegistry.addName(blockicyore, "Icy Ore");
LanguageRegistry.addName(blockicegemstairs, "Ice Gem Stairs");
LanguageRegistry.addName(blockhellgemstairs, "Hell Gem Stairs");
LanguageRegistry.addName(blockhellgemhalfslab, "Hell Gem Slab");
LanguageRegistry.addName(blockicegemhalfslab, "Ice Gem Slab");

LanguageRegistry.addName(blockhardwoodleaves, "Hardwood Leaves");
LanguageRegistry.addName(blockhardwoodlog, "Hardwood Log");
LanguageRegistry.addName(blockhardwoodsapling, "Hardwood Sapling");
LanguageRegistry.addName(blockhardwoodplanks, "Hardwood Planks");
LanguageRegistry.addName(blockhardwoodhalfSlab, "Hardwood Slab");
LanguageRegistry.addName(blockhardwoodstairs, "Hardwood Stairs");



//tools
LanguageRegistry.addName(carbyneAxe, "Carbyne Axe");
LanguageRegistry.addName(carbyneShovel, "Carbyne Shovel");
LanguageRegistry.addName(carbynePickaxe, "Carbyne Pickaxe");
LanguageRegistry.addName(carbyneSword, "Carbyne Sword");
LanguageRegistry.addName(carbyneHoe, "Carbyne Hoe");
LanguageRegistry.addName(itemhammer, "Hammer");

LanguageRegistry.addName(hellgemSword, "Hell Gem Sword");
LanguageRegistry.addName(hellgemPickaxe, "Hell Gem Pickaxe");

LanguageRegistry.addName(icegemSword, "Ice Gem Sword");

//armor
LanguageRegistry.addName(carbyneHelmet, "Carbyne Helmet");
LanguageRegistry.addName(carbyneChestplate, "Carbyne Chestplate");
LanguageRegistry.addName(carbyneLeggings, "Carbyne Leggings");
LanguageRegistry.addName(carbyneBoots, "Carbyne Boots");

//crafting


GameRegistry.addRecipe(new ItemStack(rawcarbyne,1), new Object[]{
"TTT","TDT","TTT",'T',carbyneshard,'D', itemhammerddiamonds
});
GameRegistry.addRecipe(new ItemStack(carbyneblock,1), new Object[]{
"TTT","TTT","TTT",'T',carbyne,
});

GameRegistry.addRecipe(new ItemStack(carbynePickaxe,1), new Object[]{
"TTT"," Y "," Y ",'T',carbyne,'Y',itemHardwoodStick
});


GameRegistry.addRecipe(new ItemStack(carbyneSword,1), new Object[]{
" T "," T "," Y ",'T',carbyne,'Y',itemHardwoodStick
});


GameRegistry.addRecipe(new ItemStack(carbyneAxe,1), new Object[]{
"TT ","TY "," Y ",'T',carbyne,'Y',itemHardwoodStick
});
GameRegistry.addRecipe(new ItemStack(carbyneHoe,1), new Object[]{
"TT "," Y "," Y ",'T',carbyne,'Y',itemHardwoodStick
});
GameRegistry.addRecipe(new ItemStack(carbyneShovel,1), new Object[]{
" T "," Y "," Y ",'T',carbyne,'Y',itemHardwoodStick
});
GameRegistry.addRecipe(new ItemStack(carbyneHelmet,1), new Object[]{
"TTT","T T","   ",'T',carbyne
});
GameRegistry.addRecipe(new ItemStack(carbyneChestplate,1), new Object[]{
"T T","TTT","TTT",'T',carbyne
});
GameRegistry.addRecipe(new ItemStack(carbyneLeggings,1), new Object[]{
"TTT","T T","T T",'T',carbyne
});
GameRegistry.addRecipe(new ItemStack(carbyneBoots,1), new Object[]{
"   ","T T","T T",'T',carbyne
});
GameRegistry.addRecipe(new ItemStack(carbyneblockhalfslab,1), new Object[]{
"   ","   ","TTT",'T',carbyne,
});
GameRegistry.addRecipe(new ItemStack(carbyneblockstair,1), new Object[]{
"T  ","TT ","TTT",'T',carbyne,
});
GameRegistry.addRecipe(new ItemStack(blockhellgemblock,1), new Object[]{
"TTT","TTT","TTT",'T',itemhellgem,
});
GameRegistry.addRecipe(new ItemStack(blockicegemblock,1), new Object[]{
"TTT","TTT","TTT",'T',itemicegem,
});
GameRegistry.addRecipe(new ItemStack(blockicegemstairs,1), new Object[]{
"T  ","TT ","TTT",'T',itemicegem,
});
GameRegistry.addRecipe(new ItemStack(blockhellgemstairs,1), new Object[]{
"T  ","TT ","TTT",'T',itemhellgem,
});
GameRegistry.addRecipe(new ItemStack(blockhellgemhalfslab,1), new Object[]{
"   ","   ","TTT",'T',itemhellgem,
});
GameRegistry.addRecipe(new ItemStack(blockicegemhalfslab,1), new Object[]{
"   ","   ","TTT",'T',itemicegem,
});
GameRegistry.addRecipe(new ItemStack(hellgemPickaxe,1), new Object[]{
"TTT"," Y "," Y ",'T',itemhellgem,'Y',Item.blazeRod
});
GameRegistry.addRecipe(new ItemStack(hellgemSword,1), new Object[]{
" T "," T "," Y ",'T',itemhellgem,'Y',Item.blazeRod
});
GameRegistry.addRecipe(new ItemStack(itemhammer,1), new Object[]{
"TTT","TYT"," Y ",'T',Item.ingotIron,'Y',Item.stick
});
GameRegistry.addRecipe(new ItemStack(itemHardwoodStick,4), new Object[]{
"   "," T "," T ",'T',blockhardwoodlog
});
//shapeless 
GameRegistry.addShapelessRecipe(new ItemStack(carbyne,9), new Object[]{
carbyneblock});
GameRegistry.addShapelessRecipe(new ItemStack(itemicegem,9), new Object[]{
blockicegemblock});
GameRegistry.addShapelessRecipe(new ItemStack(itemhellgem,9), new Object[]{
blockhellgemblock});
GameRegistry.addShapelessRecipe(new ItemStack(itemhammerddiamonds, 1, 0), new ItemStack(itemhammer, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Block.blockDiamond));
//smelting
GameRegistry.addSmelting(rawcarbyne.itemID, new ItemStack(carbyne, 1), 5F);
GameRegistry.addSmelting(blockhellore.blockID, new ItemStack(itemhellgem, 1), 5F);
GameRegistry.addSmelting(blockicyore.blockID, new ItemStack(itemicegem, 1), 5F);
GameRegistry.addSmelting(carbyneore.blockID, new ItemStack(carbyneshard, 1), 5F);
//other

GameRegistry.registerWorldGenerator(new WorldGencarbyneore());
GameRegistry.registerWorldGenerator(new WorldGenHellOre());
GameRegistry.registerWorldGenerator(new WorldGenicyore());
GameRegistry.registerCraftingHandler(new HammerCraftingHandler());
GameRegistry.registerWorldGenerator(new worldgenhardwood());

MinecraftForge.EVENT_BUS.register(new indestructibleTools_EventBonemeal());
//mob
} 
@EventHandler
public void postInit(FMLPostInitializationEvent e){
Item.itemsList[carbyneblockhalfslab.blockID] = new ItemSlab(carbyneblockhalfslab.blockID-256, (BlockHalfSlab)carbyneblockhalfslab, (BlockHalfSlab)carbyneblockdubbleslab, false);
Item.itemsList[blockicegemhalfslab.blockID] = new ItemSlab(blockicegemhalfslab.blockID-256, (BlockHalfSlab)blockicegemhalfslab, (BlockHalfSlab)blockicegemdubbleslab, false);
Item.itemsList[blockhellgemhalfslab.blockID] = new ItemSlab(blockhellgemhalfslab.blockID-256, (BlockHalfSlab)blockhellgemhalfslab, (BlockHalfSlab)blockhellgemdubbleslab, false);

}
}

Posted

Well here is your first error:

 

 

carbyneoreID = config.getBlock("carbyneore", 9117).getInt();

 

 

Blocks can only be up to ID 4096.. You passed that up big time. And you have some more blocks that are higher than 4096 as well. Items can go higher, but blocks can't.

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • After reinstalling and rebuilding server, now I get another error which is Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(2829) + length(1) exceeds writerIndex(2829): UnpooledHeapByteBuf(ridx: 2829, widx: 2829, cap: 2829/2829)
    • In 1.20.1, while creating an addon(mod) for Epic Fight, I tried to runclient and it crashed with the following error rg.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mixins.epicfight.json:MixinEntityRenderer] from phase [DEFAULT] in config [ mixins.epicfight.json] FAILED during APPLY Could you please tell me how to solve this problem? build.gradle   plugins { id 'eclipse' id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0,6.2)' //id 'org.parchmentmc.librarian.forgegradle' version '1.+' //id 'org.spongepowerd.mixin' version '0.8.5' } version = mod_version group = mod_group_id base { archivesName = mod_id } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { // The mappings can be changed at any time and must be in the following format. // Channel: Version: // official MCVersion Official field/method names from Mojang mapping files // parchment YYYY.MM.DD-MCVersion Open community-sourced parameter names and javadocs layered on top of official // // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings. // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md // // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge // Additional setup is needed to use their mappings: https://parchmentmc.org/docs/getting-started // // Use non-default mappings at your own risk. They may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. mappings channel: mapping_channel, version: mapping_version // When true, this property will have all Eclipse/IntelliJ IDEA run configurations run the "prepareX" task for the given run configuration before launching the game. // In most cases, it is not necessary to enable. // enableEclipsePrepareRuns = true // enableIdeaPrepareRuns = true // This property allows configuring Gradle's ProcessResources task(s) to run on IDE output locations before launching the game. // It is REQUIRED to be set to true for this template to function. // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html copyIdeResources = true // When true, this property will add the folder name of all declared run configurations to generated IDE run configurations. // The folder name can be set on a run configuration using the "folderName" property. // By default, the folder name of a run configuration is the name of the Gradle project containing it. // generateRunFolders = true // This property enables access transformers for use in development. // They will be applied to the Minecraft artifact. // The access transformer file can be anywhere in the project. // However, it must be at "META-INF/accesstransformer.cfg" in the final mod jar to be loaded by Forge. // This default location is a best practice to automatically put the file in the right place in the final jar. // See https://docs.minecraftforge.net/en/latest/advanced/accesstransformers/ for more information. // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Default run configurations. // These can be tweaked, removed, or duplicated as needed. runs { // applies to all the run configs below configureEach { workingDirectory project.file('run') // Recommended logging data for a userdev environment // The markers can be added/remove as needed separated by commas. // "SCAN": For mods scan. // "REGISTRIES": For firing of registry events. // "REGISTRYDUMP": For getting the contents of all registries. property 'forge.logging.markers', 'REGISTRIES' // Recommended logging level for the console // You can set various levels here. // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels property 'forge.logging.console.level', 'debug' mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } // This run config launches GameTestServer and runs all registered gametests, then exits. // By default, the server will crash when no gametests are provided. // The gametest system is also enabled by default for other run configs under the /test command. gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { // example of overriding the workingDirectory set in configureEach above workingDirectory project.file('run-data') // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } // Include resources generated by data generators. sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { // Put repositories for dependencies here // ForgeGradle automatically adds the Forge maven and Maven Central for you maven { url "https://cursemaven.com" content { includeGroup "curse.maven" } } // If you have mod jar dependencies in ./libs, you can declare them as a repository like so. // See https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver // flatDir { // dir 'libs' // } } dependencies { // Specify the version of Minecraft to use. // Any artifact can be supplied so long as it has a "userdev" classifier artifact and is a compatible patcher artifact. // The "userdev" classifier will be requested and setup by ForgeGradle. // If the group id is "net.minecraft" and the artifact id is one of ["client", "server", "joined"], // then special handling is done to allow a setup of a vanilla dependency without the use of an external repository. minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}") // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}") // runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}") implementation fg.deobf("curse.maven:epic-fight-mod-405076:5922122") annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' // Example mod dependency using a mod jar from ./libs with a flat dir repository // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar // The group id is ignored when searching -- in this case, it is "blank" // implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}") // For more info: // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } // This block of code expands all declared replace properties in the specified resource targets. // A missing property will result in an error. Properties are expanded using ${} Groovy notation. // When "copyIdeResources" is enabled, this will also run before the game launches in IDE environments. // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html tasks.named('processResources', ProcessResources).configure { var replaceProperties = [ minecraft_version: minecraft_version, minecraft_version_range: minecraft_version_range, forge_version: forge_version, forge_version_range: forge_version_range, loader_version_range: loader_version_range, mod_id: mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version, mod_authors: mod_authors, mod_description: mod_description, ] inputs.properties replaceProperties filesMatching(['META-INF/mods.toml', 'pack.mcmeta']) { expand replaceProperties + [project: project] } } // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors, 'Specification-Version' : '1', // We are version 1 of ourselves 'Implementation-Title' : project.name, 'Implementation-Version' : project.jar.archiveVersion, 'Implementation-Vendor' : mod_authors, 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } // This is the preferred method to reobfuscate your jar file finalizedBy 'reobfJar' } // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing: // tasks.named('publish').configure { // dependsOn 'reobfJar' // } // Example configuration to allow publishing using the maven-publish plugin publishing { publications { register('mavenJava', MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } maven { url "https://cursemaven.com" content { includeGroup "curse.maven" } } } } tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation }  
    • I have a custom 3d model which works perfectly. BUT I want it to be held diffrently on the players hand when the item is being used. My JSON file under assets/examplemod/items looks like this: { "model": { "type": "minecraft:condition", "on_false": { "type": "minecraft:model", "model": "examplemod:item/example_item" }, "on_true": { "type": "minecraft:model", "model": "examplemod:item/example_item_using" }, "property": "minecraft:using_item" } }   This works fine until the item is used. The correct model will be displayed but with a full black texture instead of the actuall texture. Any idea why? (I want to use the exact same texture for both items, because their model is the same just diffrent displays on firstperson_righthand and firstperson_lefthand). The models JSON's are fully blockbench files inlcuding the elements, display, textures with texture_size.   Also is this the correct way to do it? Because it feels so dumb to change the exact same model just for a diffrent right- and lefthand view.   (fyi: ItemUseAnimation is BLOCK for this item)
    • I just backed up my world then tried to create new mod with currently equipped mod but with new world still made same error. Sooo I think it's not world error. also It's working fine on singleplayer. + but it made some another weird error with new world
    • Maybe the file is too large - you can upload the log file via Mediafire
  • Topics

×
×
  • Create New...

Important Information

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