My mod keeps crashing!
it will say:
Crash Report:
Code:
package com.CraigTheMailman.RandomMC;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import com.CraigTheMailman.RandomMC.Gen.ChocoGen;
import com.CraigTheMailman.RandomMC.Gen.RainbowGen;
import com.CraigTheMailman.RandomMC.armor.ArmorR;
import com.CraigTheMailman.RandomMC.blocks.ChocoOre;
import com.CraigTheMailman.RandomMC.blocks.RainbowBlk;
import com.CraigTheMailman.RandomMC.blocks.RainbowOre;
import com.CraigTheMailman.RandomMC.food.FoodChocolate;
import com.CraigTheMailman.RandomMC.items.Ash;
import com.CraigTheMailman.RandomMC.items.ChocoBoStaff;
import com.CraigTheMailman.RandomMC.items.FireCrystal;
import com.CraigTheMailman.RandomMC.items.FlameEmitter;
import com.CraigTheMailman.RandomMC.items.GoldenDiamondHammer;
import com.CraigTheMailman.RandomMC.items.GoldenDiamondIngot;
import com.CraigTheMailman.RandomMC.items.Infuser;
import com.CraigTheMailman.RandomMC.items.RainbowAxe;
import com.CraigTheMailman.RandomMC.items.RainbowDye;
import com.CraigTheMailman.RandomMC.items.RainbowHoe;
import com.CraigTheMailman.RandomMC.items.RainbowIngot;
import com.CraigTheMailman.RandomMC.items.RainbowPick;
import com.CraigTheMailman.RandomMC.items.RainbowShovel;
import com.CraigTheMailman.RandomMC.items.RainbowSword;
import com.CraigTheMailman.RandomMC.items.SpellBk1;
import com.CraigTheMailman.RandomMC.items.Unstable1;
import com.CraigTheMailman.RandomMC.items.Unstable3;
import com.CraigTheMailman.RandomMC.items.UnstableDiamond;
import com.CraigTheMailman.RandomMC.lib.ProxyCommon;
import com.CraigTheMailman.RandomMC.lib.Refrences;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = Refrences.ModID, version = Refrences.Version)
public class RandomMC {
@SidedProxy(clientSide = Refrences.Client,
serverSide = Refrences.Common)
public static ProxyCommon Proxy;
public static int helm;
public static int chest;
public static int legs;
public static int boots;
//Tools
public static ToolMaterial Rainbow = EnumHelper.addToolMaterial("Rainbow", 3, 10000, 23.0F, 6.0F, 20);
public static ToolMaterial ChocoBostaff = EnumHelper.addToolMaterial("Chocolate", 0, 10000, 23.0F, 30.0F, 100);
public static ToolMaterial GoldenDiamond = EnumHelper.addToolMaterial("Golden Diamond", 0, 100000, 23.0F, 50.0F, 1000);
//Armor
public static ArmorMaterial RainbowArmor = EnumHelper.addArmorMaterial("Rainbow", 10000, new int[] {6, 24, 12, 4}, 24);
//Items
public static Item FlameEmitter = new FlameEmitter(100006).setCreativeTab(RandomMC.tabRandom);
public static Item Ash = new Ash(100005).setCreativeTab(RandomMC.tabRandom);
public static Item FireCrystal = new FireCrystal(100004).setCreativeTab(RandomMC.tabRandom);
public static Item SpellBk1 = new SpellBk1(100003).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowIngot = new RainbowIngot(100002).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowDye = new RainbowDye(100001).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowPick = new RainbowPick(Rainbow).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowSword = new RainbowSword(Rainbow).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowShovel = new RainbowShovel(Rainbow).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowAxe = new RainbowAxe(Rainbow).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowHoe = new RainbowHoe(Rainbow).setCreativeTab(RandomMC.tabRandom);
public static Item ChocoBoStaff = new ChocoBoStaff(ChocoBostaff).setCreativeTab(RandomMC.tabRandom);
public static Item RainbowHelmet = new ArmorR(RainbowArmor, helm, 0, 0).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowHelm");
public static Item RainbowChest = new ArmorR(RainbowArmor, chest, 0, 1).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowChest");
public static Item RainbowLegs = new ArmorR(RainbowArmor, legs, 0, 2).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowLegs");
public static Item RainbowBoots = new ArmorR(RainbowArmor, boots, 0, 3).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowBoots");
public static Item GoldenDiamondHammer = new GoldenDiamondHammer(GoldenDiamond).setCreativeTab(RandomMC.tabRandom);
public static Item UnstableGoldenIngot = new Unstable1(100012).setCreativeTab(RandomMC.tabRandom);
public static Item Infuser1 = new Infuser(100013).setCreativeTab(RandomMC.tabRandom);
public static Item UnstableDiamond = new UnstableDiamond(100014).setCreativeTab(RandomMC.tabRandom);
public static Item InfusedGoldDiamond1 = new Unstable3(100015).setCreativeTab(RandomMC.tabRandom);
public static Item GoldenDiamondIngot = new GoldenDiamondIngot(100011).setCreativeTab(RandomMC.tabRandom);
//Generation
public static RainbowGen RainbowGen = new RainbowGen();
public static ChocoGen ChocoGen = new ChocoGen();
//Blocks
public static final Block RainbowOre = new RainbowOre(Material.rock);
public static final Block ChocoOre = new ChocoOre(Material.rock);
public static final Block RainbowBlk = new RainbowBlk(Material.rock);
public static CreativeTabs tabRandom = new tabRandom(CreativeTabs.getNextID(), "RandomMC");
//Food
public static Item Chocolate = new FoodChocolate(100000, 4, true).setCreativeTab(RandomMC.tabRandom);
@EventHandler
public void init(FMLInitializationEvent event)
{
}
@EventHandler
public void load(FMLInitializationEvent event)
{
//Crafting
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Items.paper});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Items.book});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Blocks.planks});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Items.wooden_hoe});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Items.wooden_pickaxe});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Items.wooden_sword});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Items.wooden_shovel});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Items.wooden_axe});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Blocks.log});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Blocks.log2});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Blocks.chest});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Blocks.crafting_table});
GameRegistry.addShapedRecipe(new ItemStack(this.FireCrystal, 1), new Object[] {
"XXX", "YYY", "YAY", 'X', Blocks.glass, 'Y', Items.ghast_tear, 'A', this.Ash});
GameRegistry.addShapedRecipe(new ItemStack(FlameEmitter, 1), new Object[] {
"X A", " XY", " YY", 'X', Blocks.iron_block, 'A', this.FireCrystal, 'Y', Items.iron_ingot});
GameRegistry.addShapedRecipe(new ItemStack(this.SpellBk1, 1), new Object[] {
"XYX", "YJY", "XYX", 'X', Blocks.tnt, 'Y', Blocks.redstone_torch, 'J', Items.book});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowDye, 1), new Object[] {
"XXX", "XXX", "XXX", 'X', Items.dye});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowIngot, 1), new Object[] {
"XXX", "XYX", "XXX", 'X', this.RainbowDye, 'Y', Items.iron_ingot});
GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] {
Items.flint_and_steel, Blocks.bookshelf});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowPick, 1), new Object[] {
"XXX", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowSword, 1), new Object[] {
" X ", " X ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowShovel, 1), new Object[] {
" X ", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowAxe, 1), new Object[] {
"XX ", "XY ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowAxe, 1), new Object[] {
" XX", " YX", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHoe, 1), new Object[] {
" XX", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHoe, 1), new Object[] {
"XX ", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick});
GameRegistry.addShapedRecipe(new ItemStack(this.ChocoBoStaff, 1), new Object[] {
"X ", " X ", " X", 'X', this.Chocolate});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowBlk, 1), new Object[] {
"XXX", "XXX", "XXX", 'X', this.RainbowIngot});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHelmet, 1), new Object[] {
"XXX", "X X", " ", 'X', this.RainbowIngot});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowChest, 1), new Object[] {
"X X", "XXX", "XXX", 'X', this.RainbowIngot});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowLegs, 1), new Object[] {
"XXX", "X X", "X X", 'X', this.RainbowIngot});
GameRegistry.addShapedRecipe(new ItemStack(this.RainbowBoots, 1), new Object[] {
"X X", "X X", " ", 'X', this.RainbowIngot});
GameRegistry.addShapedRecipe(new ItemStack(InfusedGoldDiamond1, 1), new Object[] {
UnstableDiamond, UnstableGoldenIngot});
GameRegistry.addShapedRecipe(new ItemStack(this.UnstableDiamond, 1), new Object[] {
Items.diamond, Infuser1, Items.lava_bucket});
GameRegistry.addShapedRecipe(new ItemStack(this.UnstableGoldenIngot, 1), new Object[] {
Items.gold_ingot, Infuser1, Items.lava_bucket});
GameRegistry.addShapedRecipe(new ItemStack(this.GoldenDiamondHammer, 1), new Object[] {
"XXX", "XYX", " Y ", 'X', GoldenDiamondIngot, 'Y', Items.stick});
//Smelting
GameRegistry.addSmelting(InfusedGoldDiamond1, new ItemStack(GoldenDiamondIngot, 1), 0.3F);
Proxy.registerRenderInformation();
GameRegistry.registerBlock(RainbowOre, "RO");
GameRegistry.registerBlock(ChocoOre, "CO");
GameRegistry.registerBlock(RainbowBlk, "RB");
LanguageRegistry.addName(RainbowOre, "Rainbow Ore");
LanguageRegistry.addName(ChocoOre, "Chocolate Ore");
LanguageRegistry.addName(RainbowBlk, "Rainbow Block");
this.FlameEmitter.setCreativeTab(this.tabRandom);
this.FireCrystal.setCreativeTab(this.tabRandom);
this.Ash.setCreativeTab(this.tabRandom);
this.SpellBk1.setCreativeTab(this.tabRandom);
this.RainbowIngot.setCreativeTab(this.tabRandom);
this.RainbowOre.setCreativeTab(this.tabRandom);
this.RainbowDye.setCreativeTab(this.tabRandom);
this.Chocolate.setCreativeTab(this.tabRandom);
this.ChocoOre.setCreativeTab(this.tabRandom);
this.RainbowPick.setCreativeTab(this.tabRandom);
this.RainbowSword.setCreativeTab(this.tabRandom);
this.RainbowShovel.setCreativeTab(this.tabRandom);
this.RainbowAxe.setCreativeTab(this.tabRandom);
this.RainbowHoe.setCreativeTab(this.tabRandom);
this.ChocoBoStaff.setCreativeTab(this.tabRandom);
this.RainbowHelmet.setCreativeTab(tabRandom);
this.RainbowChest.setCreativeTab(tabRandom);
this.RainbowLegs.setCreativeTab(tabRandom);
this.RainbowBoots.setCreativeTab(tabRandom);
this.GoldenDiamondHammer.setCreativeTab(tabRandom);
this.InfusedGoldDiamond1.setCreativeTab(tabRandom);
this.Infuser1.setCreativeTab(tabRandom);
this.UnstableDiamond.setCreativeTab(tabRandom);
this.UnstableGoldenIngot.setCreativeTab(tabRandom);
this.GoldenDiamondIngot.setCreativeTab(tabRandom);
}
public RandomMC(){
//GameRegistry
GameRegistry.registerItem(InfusedGoldDiamond1, "IGD");
GameRegistry.registerItem(Infuser1, "I");
GameRegistry.registerItem(GoldenDiamondIngot, "GDH2");
GameRegistry.registerItem(UnstableDiamond, "UD");
GameRegistry.registerItem(UnstableGoldenIngot, "UGI");
GameRegistry.registerItem(GoldenDiamondHammer, "GDH");
GameRegistry.registerItem(FlameEmitter, "FE");
GameRegistry.registerItem(Ash, "A");
GameRegistry.registerItem(FireCrystal, "FC");
GameRegistry.registerItem(SpellBk1, "SB1");
GameRegistry.registerItem(RainbowIngot, "RI");
GameRegistry.registerItem(RainbowDye, "RD");
GameRegistry.registerItem(Chocolate, "Fc2");
GameRegistry.registerItem(RainbowPick, "RP");
GameRegistry.registerItem(RainbowSword, "RS");
GameRegistry.registerItem(RainbowShovel, "Rs2");
GameRegistry.registerItem(RainbowAxe, "RA");
GameRegistry.registerItem(RainbowHoe, "RH");
GameRegistry.registerItem(ChocoBoStaff, "CBS");
GameRegistry.registerItem(RainbowHelmet, "RainbowHelmet");
GameRegistry.registerItem(RainbowChest, "RainbowChest");
GameRegistry.registerItem(RainbowLegs, "RainbowLegs");
GameRegistry.registerItem(RainbowBoots, "RainbowBoots");
//Registry WorldGen
GameRegistry.registerWorldGenerator(RainbowGen, 16);
GameRegistry.registerWorldGenerator(ChocoGen, 16);
//LanguageRegistry
LanguageRegistry.addName(FlameEmitter, "Flame Emitter");
LanguageRegistry.addName(Ash, "Ash");
LanguageRegistry.addName(FireCrystal, "Fire Crystal");
LanguageRegistry.addName(SpellBk1, "Spell Book of the Grenadier");
LanguageRegistry.addName(RainbowIngot, "Rainbow Ingot");
LanguageRegistry.addName(RainbowDye, "RainbowDye");
LanguageRegistry.addName(Chocolate, "Chocolate");
LanguageRegistry.addName(RainbowPick, "Rainbow Pickaxe");
LanguageRegistry.addName(RainbowSword, "Rainbow Sword");
LanguageRegistry.addName(RainbowShovel, "Rainbow Shovel");
LanguageRegistry.addName(RainbowAxe, "Rainbow Axe");
LanguageRegistry.addName(RainbowHoe, "Rainbow Hoe");
LanguageRegistry.addName(ChocoBoStaff, "Chocolate Bo Staff");
LanguageRegistry.addName(RainbowHelmet, "Rainbow Helmet");
LanguageRegistry.addName(RainbowChest, "Rainbow Chestplate");
LanguageRegistry.addName(RainbowLegs, "Rainbow Leggings");
LanguageRegistry.addName(RainbowBoots, "Rainbow Boots");
LanguageRegistry.addName(InfusedGoldDiamond1, "Infused Unstable Gold & Diamond");
LanguageRegistry.addName(Infuser1, "Infuser");
LanguageRegistry.addName(GoldenDiamondIngot, "Golden Diamond Ingot");
LanguageRegistry.addName(UnstableDiamond, "Unstable Diamond");
LanguageRegistry.addName(UnstableGoldenIngot, "Unstable Golden Ingot");
LanguageRegistry.addName(GoldenDiamondHammer, "Golden Diamond Hammer");
}
}
Class that can't be casted to java.lang.character:
package com.CraigTheMailman.RandomMC.items;
import net.minecraft.item.Item;
public class UnstableDiamond extends Item {
public UnstableDiamond(int i) {
this.setTextureName("RandomMC:UD");
this.setUnlocalizedName("UD");
this.setMaxStackSize(1);
}
}
Help!
[move]Please? [/move]