Jump to content

Shapeless crafting recipe crash


BuIlDaLiBlE

Recommended Posts

Please help with this crash, I cannot understand, what cause this crash.

Crash error:

 

java.lang.NullPointerException
at um.<init>(SourceFile:50)
at mod_addminecraft.load(mod_addminecraft.java:352)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:544)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:651)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:196)
at net.minecraft.client.Minecraft.a(Minecraft.java:469)
at net.minecraft.client.Minecraft.run(Minecraft.java:756)
at java.lang.Thread.run(Unknown Source)

 

 

Mod file:

 

package net.minecraft.src;
import java.util.*;
import java.io.*;
import net.minecraft.client.Minecraft;
import net.minecraft.src.Bp.mods.addminecraft.*;
import cpw.mods.fml.common.*;
import cpw.mods.fml.common.Mod.*;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.registry.*;
import net.minecraftforge.client.*;
import net.minecraftforge.common.*;

@Mod(modid = "AddMinecraft", name = "AddMinecraft", version = "0.2.0pre")
//@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class mod_addminecraft extends BaseMod
{

static EnumToolMaterial toolCOBBLESTONE = EnumHelper.addToolMaterial("COBBLESTONE", 1, 145, 3.6F, 1, 9);
static EnumToolMaterial toolSILVER = EnumHelper.addToolMaterial("SILVER", 2, 200, 8F, 2, 12);
static EnumToolMaterial toolBRONZE = EnumHelper.addToolMaterial("BRONZE", 2, 355, 7F, 2, 16);
static EnumArmorMaterial armorCOBBLESTONE = EnumHelper.addArmorMaterial("COBBLESTONE", 12, new int[] {1, 3, 1, 2}, 9);
static EnumArmorMaterial armorSTONE = EnumHelper.addArmorMaterial("STONE", 10, new int[] {2, 4, 3, 2}, 11);
static EnumArmorMaterial armorSILVER = EnumHelper.addArmorMaterial("SILVER", 13, new int[] {2, 6, 5, 3}, 12);
static EnumArmorMaterial armorBRONZE = EnumHelper.addArmorMaterial("BRONZE", 18, new int[] {2, 7, 6, 4}, 16);

//@SidedProxy(clientSide = "AddMinecraftClient", serverSide= "AddMinecraftProxy")
public static AddMinecraftProxy proxy;
public static CreativeTabs tab = new CreativeTabAddMinecraft(CreativeTabs.getNextID(), "AddMinecraft");

public static Block silverore;
public static Block silverblock;
public static Block copperblock;
public static Block tinblock;
public static Block bronzeblock;
public static Block copperore;
public static Block tinore;
public static Block cheeseblock;
public static Block rawPizzablock;
public static Block pizzablock;
public static Block dpizzablock;
public static Block bpjukebox;
public static Block dirtslab;
public static Block sgrass;

public static Item silverIngot;
public static Item copperIngot;
public static Item tinIngot;
public static Item bronzeIngot;
public static Item cookedEgg;
public static Item dirtPiece;
public static Item boneNew;
public static Item bowlWater;
public static Item bowl3x;
public static Item bowlChicken;
public static Item bowlEar;
public static Item breadSmallPile;
public static Item breadSmall;
public static Item breadMini;
public static Item taste;
public static Item rawPizza;
public static Item pizza;
public static Item diamondpizza;
public static Item deathFood;
public static Item BuIlDaLiBlEHead;
public static Item cheesePiece;
public static Item record1;
public static Item record2;
public static Item record3;
public static Item recordMain;

public static Item pickaxeCobblestone;
public static Item shovelCobblestone;
public static Item axeCobblestone;
public static Item swordCobblestone;
public static Item hoeCobblestone;

public static Item pickaxeSilver;
public static Item shovelSilver;
public static Item axeSilver;
public static Item swordSilver;
public static Item hoeSilver;

public static Item pickaxeBronze;
public static Item shovelBronze;
public static Item axeBronze;
public static Item swordBronze;
public static Item hoeBronze;

public static Item cobblestoneHelmet;
public static Item cobblestonePlate;
public static Item cobblestoneLeggins;
public static Item cobblestoneBoots;

public static Item stoneHelmet;
public static Item stonePlate;
public static Item stoneLeggins;
public static Item stoneBoots;

public static Item silverHelmet;
public static Item silverPlate;
public static Item silverLeggins;
public static Item silverBoots;

public static Item bronzeHelmet;
public static Item bronzePlate;
public static Item bronzeLeggins;
public static Item bronzeBoots;

public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
	for(int i = 0; i < 12; i++)
	 {
	int randPosX = chunkX + random.nextInt(16);
         int randPosY = random.nextInt(35);
         int randPosZ = chunkZ + random.nextInt(16);
         (new WorldGenMinable(silverore.blockID, 6)).generate(world, random, randPosX, randPosY, randPosZ);
	 }
	for(int i = 0; i < 25; i++)
     {
         int randPosX = chunkX + random.nextInt(16);
         int randPosY = random.nextInt(100);
         int randPosZ = chunkZ + random.nextInt(16);
         (new WorldGenMinable(copperore.blockID, 10)).generate(world, random, randPosX, randPosY, randPosZ);
     }
	for(int i = 0; i < 15; i++)
     {
         int randPosX = chunkX + random.nextInt(16);
         int randPosY = random.nextInt(40);
         int randPosZ = chunkZ + random.nextInt(16);
         (new WorldGenMinable(tinore.blockID, ).generate(world, random, randPosX, randPosY, randPosZ);
     }
	{
	/*BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(chunkX, chunkZ);
	if(biomegenbase instanceof BiomeGenForest)
	{	
	for(int i = 0; i < 20; i++)
	{
			int randPosX = chunkX + random.nextInt(16);
				int randPosY = random.nextInt(128);
					int randPosZ = chunkZ + random.nextInt(16);
		  (new WorldGenFlowers(sgrass.blockID, ).generate(world, random, randPosX, randPosY, randPosZ);
	}
	}*/
	}

   }


public int addFuel(int i, int j)
{
if(i == bpjukebox.blockID)
return 300;

return 0;
}

public String getVersion()
{
return "v.0.2.0pre";
}

@Init
public void load(FMLInitializationEvent event)
{
proxy.registerRenderInformation();

    silverore = new BlockOres(145, 0).setHardness(3F).setResistance(5F).setCreativeTab(mod_addminecraft.tab).setBlockName("silverore");
    silverblock = (new BlockOresBlocks(146, 1)).setHardness(4F).setResistance(12F).setStepSound(Block.soundMetalFootstep).setCreativeTab(mod_addminecraft.tab).setBlockName("silverblock");
    copperblock = (new BlockOresBlocks(147, 17)).setHardness(4F).setResistance(7F).setStepSound(Block.soundMetalFootstep).setCreativeTab(mod_addminecraft.tab).setBlockName("copperblock");
    tinblock = (new BlockOresBlocks(148, 33)).setHardness(4F).setResistance(8F).setStepSound(Block.soundMetalFootstep).setCreativeTab(mod_addminecraft.tab).setBlockName("tinblock");
    bronzeblock = (new BlockOresBlocks(149, 49)).setHardness(4F).setResistance(15F).setStepSound(Block.soundMetalFootstep).setCreativeTab(mod_addminecraft.tab).setBlockName("bronzeblock");
    copperore = (new BlockOres(150, 16)).setHardness(2.5F).setResistance(3F).setCreativeTab(mod_addminecraft.tab).setBlockName("copperore");
    tinore = (new BlockOres(151, 32)).setHardness(2.5F).setResistance(3F).setCreativeTab(mod_addminecraft.tab).setBlockName("tinore");
    cheeseblock = (new BlockCheese(152, 48)).setHardness(0.4F).setResistance(3F).setStepSound(Block.soundClothFootstep).setCreativeTab(mod_addminecraft.tab).setBlockName("cheeseblock");
    rawPizzablock = (new BlockRawPizza(153, 0)).setHardness(0.8F).setResistance(3F).setStepSound(Block.soundClothFootstep).setBlockName("rawPizzablock");
    pizzablock = (new BlockPizza(154, 0)).setHardness(0.9F).setResistance(3.5F).setStepSound(Block.soundClothFootstep).setBlockName("pizzablock");
    dpizzablock = (new BlockDiamondPizza(155, 0)).setHardness(1.2F).setResistance(8F).setStepSound(Block.soundClothFootstep).setBlockName("dpizzablock");
    bpjukebox = (new BlockBpJukebox(156, 0)).setHardness(1.3F).setResistance(7.0F).setStepSound(Block.soundWoodFootstep)/*.setCreativeTab(mod_addminecraft.tab)*/.setBlockName("bpjukebox").setRequiresSelfNotify();
    dirtslab = (new BlockDirtSlab(157, 2)).setHardness(0.5F).setResistance(2.5F).setLightOpacity(1).setStepSound(Block.soundGravelFootstep)/*.setCreativeTab(mod_addminecraft.tab)*/.setBlockName("dirtslab");
    sgrass = (new BlockStrangeGrass(158, 9)).setHardness(0F).setResistance(0F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setCreativeTab(mod_addminecraft.tab).setBlockName("sgrass");

    silverIngot = new ItemIngots(2033).setIconCoord(2, 9).setCreativeTab(mod_addminecraft.tab).setItemName("silverIngot");
    copperIngot = new ItemIngots(2034).setIconCoord(0, 9).setCreativeTab(mod_addminecraft.tab).setItemName("copperIngot");
    tinIngot = new ItemIngots(2035).setIconCoord(1, 9).setCreativeTab(mod_addminecraft.tab).setItemName("tinIngot");
    bronzeIngot = new ItemIngots(2036).setIconCoord(3, 9).setCreativeTab(mod_addminecraft.tab).setItemName("bronzeIngot");
    cookedEgg = (new ItemFoodCookedEgg(2037, 7, 1F, false)).setIconCoord(0, 10).setCreativeTab(mod_addminecraft.tab).setItemName("cookedEgg");
    dirtPiece = (new ItemFoodBreadMini(2038, 1, 1F, true)).setPotionEffect(Potion.confusion.id, 60, 0, 0.9F).setIconCoord(1, 10).setCreativeTab(mod_addminecraft.tab).setItemName("dirtPiece");
     boneNew = (new ItemFoodBoneNew(2039, 2, 1F, false)).setPotionEffect(Potion.digSpeed.id, 10, 0, 0.3F).setIconCoord(12, 1).setFull3D().setCreativeTab(mod_addminecraft.tab).setItemName("boneNew");
    bowlWater = new ItemBowlWater(2040).setIconCoord(2, 10).setCreativeTab(mod_addminecraft.tab).setItemName("bowlWater");
    bowl3x = new ItemBowl3x(2041).setIconCoord(4, 10).setCreativeTab(mod_addminecraft.tab).setItemName("bowl3x");
    bowlChicken = (new ItemFoodBowlChicken(2042, 8, 1F, false).setIconCoord(3, 10).setCreativeTab(mod_addminecraft.tab).setItemName("bowlChicken"));
    bowlEar = (new ItemFoodBowlChicken(2043, 8, 1F, false).setIconCoord(3, 10).setCreativeTab(mod_addminecraft.tab).setItemName("bowlEar"));
    breadSmallPile = (new ItemFoodBreadMini(2044, 1, 1F, true).setIconCoord(6, 10).setCreativeTab(mod_addminecraft.tab).setItemName("breadSmallPile"));
    breadSmall = (new ItemFoodBreadMini(2045, 4, 1F, true).setIconCoord(7, 10).setCreativeTab(mod_addminecraft.tab).setItemName("breadSmall"));
    breadMini = (new ItemFoodBreadMini(2046, 8, 1F, true).setIconCoord(5, 10).setCreativeTab(mod_addminecraft.tab).setItemName("breadMini"));
    taste = new ItemTaste(2047).setIconCoord(8, 10).setCreativeTab(mod_addminecraft.tab).setItemName("taste");
    rawPizza = (new ItemPizza(2048, rawPizzablock).setMaxStackSize(1).setIconCoord(9, 10).setCreativeTab(mod_addminecraft.tab).setItemName("rawPizza"));
    pizza = (new ItemPizza(2049, pizzablock).setMaxStackSize(1).setIconCoord(9, 10).setCreativeTab(mod_addminecraft.tab).setItemName("pizza"));
    diamondpizza = (new ItemPizza(2050, dpizzablock).setMaxStackSize(1).setIconCoord(10, 10).setCreativeTab(mod_addminecraft.tab).setItemName("diamondpizza"));
    deathFood = (new ItemFoodBreadMini(2051, 0, 1F, false).setPotionEffect(Potion.harm.id, 1, 4, 1F).setIconCoord(13, 10).setFull3D().setCreativeTab(mod_addminecraft.tab).setItemName("deathFood"));
    BuIlDaLiBlEHead = (new ItemFoodBreadMini(2052, 20, 1F, true).setPotionEffect(Potion.regeneration.id, 600, 4, 1F).setIconCoord(14, 10).setFull3D().setCreativeTab(mod_addminecraft.tab).setItemName("BuIlDaLiBlEHead"));
    cheesePiece = (new ItemFoodCookedEgg(2053, 1, 1F, false).setPotionEffect(Potion.jump.id, 20, 0, 0.2F).setIconCoord(15, 10).setCreativeTab(mod_addminecraft.tab).setItemName("cheesePiece"));
    record1 = new ItemMuzon(2054, "009_Sound_System_-_Space_and_Time").setIconCoord(13, 15).setCreativeTab(mod_addminecraft.tab).setItemName("record1");
    record2 = new ItemMuzon(2055, "I_Hate_Creepers").setIconCoord(14, 15).setCreativeTab(mod_addminecraft.tab).setItemName("record1");
    record3 = new ItemMuzon(2056, "TNT").setIconCoord(15, 15).setCreativeTab(mod_addminecraft.tab).setItemName("record1");
    recordMain = new ItemBowl3x(2057).setIconCoord(0, 11).setCreativeTab(mod_addminecraft.tab).setItemName("recordMain");

    pickaxeCobblestone = new ItemPickaxeAdditional(2011, toolCOBBLESTONE).setIconCoord(0, 6).setCreativeTab(mod_addminecraft.tab).setItemName("pickaxeCobblestone");
    shovelCobblestone = new ItemSpadeAdditional(2012, toolCOBBLESTONE).setIconCoord(0, 5).setCreativeTab(mod_addminecraft.tab).setItemName("shovelCobblestone");
    axeCobblestone = new ItemAxeAdditional(2013, toolCOBBLESTONE).setIconCoord(0, 7).setCreativeTab(mod_addminecraft.tab).setItemName("axeCobblestone");
    swordCobblestone = new ItemSwordAdditional(2014, toolCOBBLESTONE).setIconCoord(0, 4).setCreativeTab(mod_addminecraft.tab).setItemName("swordCobblestone");
    hoeCobblestone = new ItemHoeAdditional(2015, toolCOBBLESTONE).setIconCoord(0, .setCreativeTab(mod_addminecraft.tab).setItemName("hoeCobblestone");

    pickaxeSilver = new ItemPickaxeAdditional(2016, toolSILVER).setIconCoord(2, 6).setCreativeTab(mod_addminecraft.tab).setItemName("pickaxeSilver");
    shovelSilver = new ItemSpadeAdditional(2017, toolSILVER).setIconCoord(2, 5).setCreativeTab(mod_addminecraft.tab).setItemName("shovelSilver");
    axeSilver = new ItemAxeAdditional(2018, toolSILVER).setIconCoord(2, 7).setCreativeTab(mod_addminecraft.tab).setItemName("axeSilver");
    swordSilver = new ItemSwordAdditional(2019, toolSILVER).setIconCoord(2, 4).setCreativeTab(mod_addminecraft.tab).setItemName("swordSilver");
    hoeSilver = new ItemHoeAdditional(2020, toolSILVER).setIconCoord(2, .setCreativeTab(mod_addminecraft.tab).setItemName("hoeSilver");

    pickaxeBronze = new ItemPickaxeAdditional(2059, toolBRONZE).setIconCoord(3, 6).setCreativeTab(mod_addminecraft.tab).setItemName("pickaxeBronze");
    shovelBronze = new ItemSpadeAdditional(2060, toolBRONZE).setIconCoord(3, 5).setCreativeTab(mod_addminecraft.tab).setItemName("shovelBronze");
    axeBronze = new ItemAxeAdditional(2061, toolBRONZE).setIconCoord(3, 7).setCreativeTab(mod_addminecraft.tab).setItemName("axeBronze");
    swordBronze = new ItemSwordAdditional(2062, toolBRONZE).setIconCoord(3, 4).setCreativeTab(mod_addminecraft.tab).setItemName("swordBronze");
    hoeBronze = new ItemHoeAdditional(2063, toolBRONZE).setIconCoord(3, .setCreativeTab(mod_addminecraft.tab).setItemName("hoeBronze");

    cobblestoneHelmet = (new ItemArmorCobblestone(2021, armorCOBBLESTONE, 5, 0)).setIconCoord(0, 0).setCreativeTab(mod_addminecraft.tab).setItemName("cobblestoneHelmet");
    cobblestonePlate = (new ItemArmorCobblestone(2022, armorCOBBLESTONE, 5, 1)).setIconCoord(0, 1).setCreativeTab(mod_addminecraft.tab).setItemName("cobblestonePlate");
    cobblestoneLeggins = (new ItemArmorCobblestone(2023, armorCOBBLESTONE, 5, 2)).setIconCoord(0, 2).setCreativeTab(mod_addminecraft.tab).setItemName("cobblestoneLeggins");
    cobblestoneBoots = (new ItemArmorCobblestone(2024, armorCOBBLESTONE, 5, 3)).setIconCoord(0, 3).setCreativeTab(mod_addminecraft.tab).setItemName("cobblestoneBoots");

    stoneHelmet = (new ItemArmorStone(2025, armorSTONE, 6, 0)).setIconCoord(1, 0).setCreativeTab(mod_addminecraft.tab).setItemName("stoneHelmet");
    stonePlate = (new ItemArmorStone(2026, armorSTONE, 6, 1)).setIconCoord(1, 1).setCreativeTab(mod_addminecraft.tab).setItemName("stonePlate");
    stoneLeggins = (new ItemArmorStone(2027, armorSTONE, 6, 2)).setIconCoord(1, 2).setCreativeTab(mod_addminecraft.tab).setItemName("stoneLeggins");
    stoneBoots = (new ItemArmorStone(2028, armorSTONE, 6, 3)).setIconCoord(1, 3).setCreativeTab(mod_addminecraft.tab).setItemName("stoneBoots");

    silverHelmet = (new ItemArmorSilver(2029, armorSILVER, 7, 0)).setIconCoord(2, 0).setCreativeTab(mod_addminecraft.tab).setItemName("silverHelmet");
    silverPlate = (new ItemArmorSilver(2030, armorSILVER, 7, 1)).setIconCoord(2, 1).setCreativeTab(mod_addminecraft.tab).setItemName("silverPlate");
    silverLeggins = (new ItemArmorSilver(2031, armorSILVER, 7, 2)).setIconCoord(2, 2).setCreativeTab(mod_addminecraft.tab).setItemName("silverLeggins");
    silverBoots = (new ItemArmorSilver(2032, armorSILVER, 7, 3)).setIconCoord(2, 3).setCreativeTab(mod_addminecraft.tab).setItemName("silverBoots");

    bronzeHelmet = (new ItemArmorBronze(2064, armorBRONZE, 8, 0)).setIconCoord(3, 0).setCreativeTab(mod_addminecraft.tab).setItemName("bronzeHelmet");
    bronzePlate = (new ItemArmorBronze(2065, armorBRONZE, 8, 1)).setIconCoord(3, 1).setCreativeTab(mod_addminecraft.tab).setItemName("bronzePlate");
    bronzeLeggins = (new ItemArmorBronze(2066, armorBRONZE, 8, 2)).setIconCoord(3, 2).setCreativeTab(mod_addminecraft.tab).setItemName("bronzeLeggins");
    bronzeBoots = (new ItemArmorBronze(2067, armorBRONZE, 8, 3)).setIconCoord(3, 3).setCreativeTab(mod_addminecraft.tab).setItemName("bronzeBoots");
    
GameRegistry.registerBlock(silverore);
GameRegistry.registerBlock(copperore);
GameRegistry.registerBlock(tinore);
GameRegistry.registerBlock(silverblock);
GameRegistry.registerBlock(copperblock);
GameRegistry.registerBlock(tinblock);
GameRegistry.registerBlock(bronzeblock);
GameRegistry.registerBlock(cheeseblock);
GameRegistry.registerBlock(rawPizzablock);
GameRegistry.registerBlock(pizzablock);
GameRegistry.registerBlock(dpizzablock);
GameRegistry.registerBlock(bpjukebox);
GameRegistry.registerBlock(dirtslab);
GameRegistry.registerBlock(sgrass);
    
LanguageRegistry.addName(silverore, "Silver Ore");
LanguageRegistry.addName(silverIngot, "Silver Ingot");
LanguageRegistry.addName(copperore, "Copper Ore");
LanguageRegistry.addName(copperIngot, "Copper Ingot");
LanguageRegistry.addName(tinore, "Tin Ore");
LanguageRegistry.addName(tinIngot, "Tin Ingot");
LanguageRegistry.addName(bronzeIngot, "Bronze Ingot");
LanguageRegistry.addName(pickaxeCobblestone, "Cobblestone Pickaxe");
LanguageRegistry.addName(shovelCobblestone, "Cobblestone Shovel");
LanguageRegistry.addName(axeCobblestone, "Cobblestone Axe");
LanguageRegistry.addName(swordCobblestone, "Cobblestone Sword");
LanguageRegistry.addName(hoeCobblestone, "Cobblestone Hoe");
LanguageRegistry.addName(pickaxeSilver, "Silver Pickaxe");
LanguageRegistry.addName(shovelSilver, "Silver Shovel");
LanguageRegistry.addName(axeSilver, "Silver Axe");
LanguageRegistry.addName(swordSilver, "Silver Sword");
LanguageRegistry.addName(hoeSilver, "Silver Hoe");
LanguageRegistry.addName(pickaxeBronze, "Bronze Pickaxe");
LanguageRegistry.addName(shovelBronze, "Bronze Shovel");
LanguageRegistry.addName(axeBronze, "Bronze Axe");
LanguageRegistry.addName(swordBronze, "Bronze Sword");
LanguageRegistry.addName(hoeBronze, "Bronze Hoe");
LanguageRegistry.addName(cobblestoneHelmet, "Cobblestone Helmet");
LanguageRegistry.addName(cobblestonePlate, "Cobblestone Chestplate");
LanguageRegistry.addName(cobblestoneLeggins, "Cobblestone Leggins");
LanguageRegistry.addName(cobblestoneBoots, "Cobblestone Boots");
LanguageRegistry.addName(stoneHelmet, "Stone Helmet");
LanguageRegistry.addName(stonePlate, "Stone Chestplate");
LanguageRegistry.addName(stoneLeggins, "Stone Leggins");
LanguageRegistry.addName(stoneBoots, "Stone Boots");
LanguageRegistry.addName(silverHelmet, "Silver Helmet");
LanguageRegistry.addName(silverPlate, "Silver Chestplate");
LanguageRegistry.addName(silverLeggins, "Silver Leggins");
LanguageRegistry.addName(silverBoots, "Silver Boots");
LanguageRegistry.addName(bronzeHelmet, "Bronze Helmet");
LanguageRegistry.addName(bronzePlate, "Bronze Chestplate");
LanguageRegistry.addName(bronzeLeggins, "Bronze Leggins");
LanguageRegistry.addName(bronzeBoots, "Bronze Boots");
LanguageRegistry.addName(cookedEgg, "Cooked Egg");
LanguageRegistry.addName(dirtPiece, "Piece of Dirt");
LanguageRegistry.addName(boneNew, "Bone");
LanguageRegistry.addName(bowlWater, "Water Bowl");
LanguageRegistry.addName(bowl3x, "3x Bowls");
LanguageRegistry.addName(bowlChicken, "Chicken Soup Bowl");
LanguageRegistry.addName(bowlEar, "Fish Soup Bowl");
LanguageRegistry.addName(breadSmallPile, "Small Bread Pile");
LanguageRegistry.addName(breadSmall, "Small Bread");
LanguageRegistry.addName(breadMini, "Mini-Bread");
LanguageRegistry.addName(pizza, "Pizza");
LanguageRegistry.addName(taste, "Taste");
LanguageRegistry.addName(rawPizza, "Raw Pizza");
LanguageRegistry.addName(diamondpizza, "Diamond Pizza");
LanguageRegistry.addName(cheeseblock, "Cheese Block");
LanguageRegistry.addName(deathFood, "Order of Death");
LanguageRegistry.addName(BuIlDaLiBlEHead, "BuIlDaLiBlE Head");
LanguageRegistry.addName(cheesePiece, "Piece of Cheese");
LanguageRegistry.addName(silverblock, "Silver Block");
LanguageRegistry.addName(copperblock, "Copper Block");
LanguageRegistry.addName(tinblock, "Tin Block");
LanguageRegistry.addName(bronzeblock, "Bronze Block");
LanguageRegistry.addName(rawPizzablock, "Raw Pizza Block");
LanguageRegistry.addName(pizzablock, "Pizza Block");
LanguageRegistry.addName(dpizzablock, "Diamond Pizza Block");
LanguageRegistry.addName(bpjukebox, "Special Bp Jukebox");
LanguageRegistry.addName(record1, "Music Disc");
LanguageRegistry.addName(recordMain, "Music Disc Base");
LanguageRegistry.addName(dirtslab, "Dirt Slab");
LanguageRegistry.addName(sgrass, "Strange Grass");
}

public void load()
{

MinecraftForge.setBlockHarvestLevel(silverore, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(silverblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(copperblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(tinblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(bronzeblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(copperore, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(tinore, "pickaxe", 1);
MinecraftForge.setToolClass(pickaxeCobblestone, "pickaxe", 1);
    MinecraftForge.setToolClass(shovelCobblestone, "shovel", 1);
    MinecraftForge.setToolClass(axeCobblestone, "axe", 1);
MinecraftForge.setToolClass(pickaxeSilver, "pickaxe", 2);
    MinecraftForge.setToolClass(shovelSilver, "shovel", 2);
    MinecraftForge.setToolClass(axeSilver, "axe", 2);
MinecraftForge.setToolClass(pickaxeBronze, "pickaxe", 2);
    MinecraftForge.setToolClass(shovelBronze, "shovel", 2);
    MinecraftForge.setToolClass(axeBronze, "axe", 2);

    GameRegistry.addRecipe(new ItemStack(Block.stoneDoubleSlab, 1), new Object[] { "A","A", 'A', Block.stoneSingleSlab});
GameRegistry.addShapelessRecipe(new ItemStack(silverIngot, 9), new Object[] {silverblock});
GameRegistry.addShapelessRecipe(new ItemStack(copperIngot, 9), new Object[] {copperblock});
GameRegistry.addShapelessRecipe(new ItemStack(tinIngot, 9), new Object[] {tinblock});
GameRegistry.addShapelessRecipe(new ItemStack(bronzeIngot, 9), new Object[] {bronzeblock});
GameRegistry.addRecipe(new ItemStack(silverblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), silverIngot});
GameRegistry.addRecipe(new ItemStack(copperblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), copperIngot});
GameRegistry.addRecipe(new ItemStack(tinblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "CC", "CT", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "CC", "TC", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "CT", "CC", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "TC", "CC", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addShapelessRecipe(new ItemStack(dirtPiece, 4), new Object[] {Block.dirt});
GameRegistry.addRecipe(new ItemStack(Block.dirt, 1), new Object[] { "##", "##", Character.valueOf('#'), dirtPiece});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 3, 15), new Object[] {boneNew});
GameRegistry.addShapelessRecipe(new ItemStack(bowl3x, 1), new Object[] {Item.bowlEmpty, Item.bowlEmpty, Item.bowlEmpty});
GameRegistry.addShapelessRecipe(new ItemStack(bowlWater, 3), new Object[] {bowl3x, Item.bucketWater});
GameRegistry.addShapelessRecipe(new ItemStack(bowlChicken, 1), new Object[] {bowlWater, Item.chickenCooked});
GameRegistry.addShapelessRecipe(new ItemStack(bowlEar, 1), new Object[] {bowlWater, Item.fishCooked});
GameRegistry.addShapelessRecipe(new ItemStack(breadSmallPile, 4), new Object[] {Item.wheat});
GameRegistry.addRecipe(new ItemStack(breadSmall, 1), new Object[] { "##", "##", Character.valueOf('#'), breadSmallPile});
GameRegistry.addShapelessRecipe(new ItemStack(breadMini, 1), new Object[] {breadSmall, breadSmall});
GameRegistry.addShapelessRecipe(new ItemStack(Item.bread, 1), new Object[] {breadMini, breadMini});
GameRegistry.addShapelessRecipe(new ItemStack(breadSmallPile, 4), new Object[] {breadSmall});
GameRegistry.addShapelessRecipe(new ItemStack(breadSmall, 2), new Object[] {breadMini});
GameRegistry.addShapelessRecipe(new ItemStack(breadMini, 2), new Object[] {Item.bread});
GameRegistry.addShapelessRecipe(new ItemStack(cheeseblock, 3), new Object[] {Item.bucketMilk});
GameRegistry.addShapelessRecipe(new ItemStack(taste, 3), new Object[] {cheeseblock});
GameRegistry.addRecipe(new ItemStack(pizza, 1), new Object[] { "CSP", "#M#", "QQQ", Character.valueOf('C'), Item.chickenCooked, Character.valueOf('S'), Item.beefCooked, Character.valueOf('P'), Item.porkCooked, Character.valueOf('#'), cheeseblock, Character.valueOf('M'), Item.bucketMilk, Character.valueOf('Q'), taste});
GameRegistry.addRecipe(new ItemStack(rawPizza, 1), new Object[] { "CSP", "#M#", "QQQ", Character.valueOf('C'), Item.chickenRaw, Character.valueOf('S'), Item.beefRaw, Character.valueOf('P'), Item.porkRaw, Character.valueOf('#'), cheeseblock, Character.valueOf('M'), Item.bucketMilk, Character.valueOf('Q'), taste});
GameRegistry.addShapelessRecipe(new ItemStack(diamondpizza, 1), new Object[] {pizza, Item.diamond});
GameRegistry.addShapelessRecipe(new ItemStack(Item.bowlEmpty, 3), new Object[] {bowl3x});
GameRegistry.addRecipe(new ItemStack(deathFood, 2), new Object[] { "BRB", "RDR", "BRB", Character.valueOf('B'), boneNew, Character.valueOf('R'), Item.rottenFlesh, Character.valueOf('D'), dirtPiece});
GameRegistry.addRecipe(new ItemStack(cheeseblock, 1), new Object[] { "##", "##", Character.valueOf('#'), cheesePiece});
//GameRegistry.addRecipe(new ItemStack(bpjukebox, 1), new Object[] { "###", "#I#", "###", Character.valueOf('#'), Block.planks, Character.valueOf('I'), Item.ingotIron});
GameRegistry.addShapelessRecipe(new ItemStack(record1, 1), new Object[] {recordMain, Item.bucketWater});
GameRegistry.addShapelessRecipe(new ItemStack(record2, 1), new Object[] {recordMain, Item.gunpowder});
GameRegistry.addShapelessRecipe(new ItemStack(record3, 1), new Object[] {recordMain, Block.tnt});
GameRegistry.addRecipe(new ItemStack(recordMain, 1), new Object[] { "#C#", "SIS", "#C#", Character.valueOf('I'), Item.ingotIron, Character.valueOf('S'), Block.stone, Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(recordMain, 1), new Object[] { "#S#", "CIC", "#S#", Character.valueOf('I'), Item.ingotIron, Character.valueOf('S'), Block.stone, Character.valueOf('C'), Block.cobblestone});
//GameRegistry.addRecipe(new ItemStack(dirtslab, 6), new Object[] { "DDD", Character.valueOf('D'), Block.dirt});

GameRegistry.addRecipe(new ItemStack(pickaxeCobblestone, 1), new Object[] { "CCC", "#S#", "#S#", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(shovelCobblestone, 1), new Object[] { "C", "S", "S", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(axeCobblestone, 1), new Object[] { "CC", "CS", "#S", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(swordCobblestone, 1), new Object[] { "C", "C", "S", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(hoeCobblestone, 1), new Object[] { "CC", "S#", "S#", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});

GameRegistry.addRecipe(new ItemStack(pickaxeSilver, 1), new Object[] { "CCC", "#S#", "#S#", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(shovelSilver, 1), new Object[] { "C", "S", "S", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(axeSilver, 1), new Object[] { "CC", "CS", "#S", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(swordSilver, 1), new Object[] { "C", "C", "S", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(hoeSilver, 1), new Object[] { "CC", "S#", "S#", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});

GameRegistry.addRecipe(new ItemStack(pickaxeBronze, 1), new Object[] { "CCC", "#S#", "#S#", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(shovelBronze, 1), new Object[] { "C", "S", "S", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(axeBronze, 1), new Object[] { "CC", "CS", "#S", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(swordBronze, 1), new Object[] { "C", "C", "S", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(hoeBronze, 1), new Object[] {"CC", "S#", "S#", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});

GameRegistry.addRecipe(new ItemStack(cobblestoneHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(cobblestonePlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(cobblestoneLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(cobblestoneBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), Block.cobblestone});

GameRegistry.addRecipe(new ItemStack(stoneHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), Block.stone});
GameRegistry.addRecipe(new ItemStack(stonePlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), Block.stone});
GameRegistry.addRecipe(new ItemStack(stoneLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), Block.stone});
GameRegistry.addRecipe(new ItemStack(stoneBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), Block.stone});

GameRegistry.addRecipe(new ItemStack(silverHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), silverIngot});
GameRegistry.addRecipe(new ItemStack(silverPlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), silverIngot});
GameRegistry.addRecipe(new ItemStack(silverLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), silverIngot});
GameRegistry.addRecipe(new ItemStack(silverBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), silverIngot});

GameRegistry.addRecipe(new ItemStack(bronzeHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzePlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzeLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzeBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), bronzeIngot});


GameRegistry.addSmelting(silverore.blockID, new ItemStack(silverIngot), 0.75F);
GameRegistry.addSmelting(copperore.blockID, new ItemStack(copperIngot), 0.45F);
GameRegistry.addSmelting(tinore.blockID, new ItemStack(tinIngot), 0.55F);
GameRegistry.addSmelting(Item.egg.shiftedIndex, new ItemStack(cookedEgg), 0.3F);
GameRegistry.addSmelting(rawPizza.shiftedIndex, new ItemStack(pizza), 0.6F);
GameRegistry.addSmelting(record1.shiftedIndex, new ItemStack(recordMain), 0.1F);
GameRegistry.addSmelting(record2.shiftedIndex, new ItemStack(recordMain), 0.1F);
GameRegistry.addSmelting(record3.shiftedIndex, new ItemStack(recordMain), 0.1F);
}

}

 

Link to comment
Share on other sites

Initialization needs @SidedProxy?

UPD:

I'm commented @SidedProxy because get a crash:

java.lang.ClassNotFoundException: AddMinecraftClient

This class exist, but minecraft doesn't see it.

 

You have to make it completely ModLoader-clean first. Means, shove your code out of net.minecraft.src and make your own package tree, stop extending BaseMod in your main class and don't use ModLoader methods (If you look in the ModLoader class, there are Forge method equivalents).

A good tutorial for this can be found here:

http://www.minecraftforge.net/wiki/Tutorials/Upgrading_To_Forge_for_1.3.1

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Already upgraded, it ok?:

 

package Bp.mods.addminecraft;
import java.util.Random;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.*;
import Bp.mods.addminecraft.*;
import net.minecraft.src.*;
import net.minecraftforge.client.*;
import net.minecraftforge.common.*;

@Mod(modid = "AddMinecraft", name = "AddMinecraft", version = "0.2.0pre")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class AddMinecraft
{

static EnumToolMaterial toolCOBBLESTONE = EnumHelper.addToolMaterial("COBBLESTONE", 1, 145, 3.6F, 1, 9);
static EnumToolMaterial toolSILVER = EnumHelper.addToolMaterial("SILVER", 2, 200, 8F, 2, 12);
static EnumToolMaterial toolBRONZE = EnumHelper.addToolMaterial("BRONZE", 2, 355, 7F, 2, 16);
static EnumArmorMaterial armorCOBBLESTONE = EnumHelper.addArmorMaterial("COBBLESTONE", 12, new int[] {1, 3, 1, 2}, 9);
static EnumArmorMaterial armorSTONE = EnumHelper.addArmorMaterial("STONE", 10, new int[] {2, 4, 3, 2}, 11);
static EnumArmorMaterial armorSILVER = EnumHelper.addArmorMaterial("SILVER", 13, new int[] {2, 6, 5, 3}, 12);
static EnumArmorMaterial armorBRONZE = EnumHelper.addArmorMaterial("BRONZE", 18, new int[] {2, 7, 6, 4}, 16);

@SidedProxy(clientSide = "Bp.mods.addminecraft.client.AddMinecraftClient", serverSide = "Bp.mods.addminecraft.AddMinecraftProxy")
public static AddMinecraftProxy proxy;
public static CreativeTabs tab = new CreativeTabAddMinecraft(CreativeTabs.getNextID(), "AddMinecraft");

public static Block silverore;
public static Block silverblock;
public static Block copperblock;
public static Block tinblock;
public static Block bronzeblock;
public static Block copperore;
public static Block tinore;
public static Block cheeseblock;
public static Block rawPizzablock;
public static Block pizzablock;
public static Block dpizzablock;
public static Block bpjukebox;
public static Block dirtslab;
public static Block sgrass;

public static Item silverIngot;
public static Item copperIngot;
public static Item tinIngot;
public static Item bronzeIngot;
public static Item cookedEgg;
public static Item dirtPiece;
public static Item boneNew;
public static Item bowlWater;
public static Item bowl3x;
public static Item bowlChicken;
public static Item bowlEar;
public static Item breadSmallPile;
public static Item breadSmall;
public static Item breadMini;
public static Item taste;
public static Item rawPizza;
public static Item pizza;
public static Item diamondpizza;
public static Item deathFood;
public static Item BuIlDaLiBlEHead;
public static Item cheesePiece;
public static Item record1;
public static Item record2;
public static Item record3;
public static Item recordMain;

public static Item pickaxeCobblestone;
public static Item shovelCobblestone;
public static Item axeCobblestone;
public static Item swordCobblestone;
public static Item hoeCobblestone;

public static Item pickaxeSilver;
public static Item shovelSilver;
public static Item axeSilver;
public static Item swordSilver;
public static Item hoeSilver;

public static Item pickaxeBronze;
public static Item shovelBronze;
public static Item axeBronze;
public static Item swordBronze;
public static Item hoeBronze;

public static Item cobblestoneHelmet;
public static Item cobblestonePlate;
public static Item cobblestoneLeggins;
public static Item cobblestoneBoots;

public static Item stoneHelmet;
public static Item stonePlate;
public static Item stoneLeggins;
public static Item stoneBoots;

public static Item silverHelmet;
public static Item silverPlate;
public static Item silverLeggins;
public static Item silverBoots;

public static Item bronzeHelmet;
public static Item bronzePlate;
public static Item bronzeLeggins;
public static Item bronzeBoots;

public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
	for(int i = 0; i < 12; i++)
	 {
	int randPosX = chunkX + random.nextInt(16);
         int randPosY = random.nextInt(35);
         int randPosZ = chunkZ + random.nextInt(16);
         (new WorldGenMinable(silverore.blockID, 6)).generate(world, random, randPosX, randPosY, randPosZ);
	 }
	for(int i = 0; i < 25; i++)
     {
         int randPosX = chunkX + random.nextInt(16);
         int randPosY = random.nextInt(100);
         int randPosZ = chunkZ + random.nextInt(16);
         (new WorldGenMinable(copperore.blockID, 10)).generate(world, random, randPosX, randPosY, randPosZ);
     }
	for(int i = 0; i < 15; i++)
     {
         int randPosX = chunkX + random.nextInt(16);
         int randPosY = random.nextInt(40);
         int randPosZ = chunkZ + random.nextInt(16);
         (new WorldGenMinable(tinore.blockID, ).generate(world, random, randPosX, randPosY, randPosZ);
     }
	{
	/*BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(chunkX, chunkZ);
	if(biomegenbase instanceof BiomeGenForest)
	{	
	for(int i = 0; i < 20; i++)
	{
			int randPosX = chunkX + random.nextInt(16);
				int randPosY = random.nextInt(128);
					int randPosZ = chunkZ + random.nextInt(16);
		  (new WorldGenFlowers(sgrass.blockID, ).generate(world, random, randPosX, randPosY, randPosZ);
	}
	}*/
	}

   }


public int addFuel(int i, int j)
{
if(i == bpjukebox.blockID)
return 300;

return 0;
}

public String getVersion()
{
return "v.0.2.0pre";
}

@Init
public void load(FMLInitializationEvent event)
{
proxy.registerRenderers();

    silverore = new BlockOres(150, 0).setHardness(3F).setResistance(5F).setCreativeTab(AddMinecraft.tab).setBlockName("silverore");
    silverblock = (new BlockOresBlocks(151, 1)).setHardness(4F).setResistance(12F).setStepSound(Block.soundMetalFootstep).setCreativeTab(AddMinecraft.tab).setBlockName("silverblock");
    copperblock = (new BlockOresBlocks(152, 17)).setHardness(4F).setResistance(7F).setStepSound(Block.soundMetalFootstep).setCreativeTab(AddMinecraft.tab).setBlockName("copperblock");
    tinblock = (new BlockOresBlocks(153, 33)).setHardness(4F).setResistance(8F).setStepSound(Block.soundMetalFootstep).setCreativeTab(AddMinecraft.tab).setBlockName("tinblock");
    bronzeblock = (new BlockOresBlocks(154, 49)).setHardness(4F).setResistance(15F).setStepSound(Block.soundMetalFootstep).setCreativeTab(AddMinecraft.tab).setBlockName("bronzeblock");
    copperore = (new BlockOres(155, 16)).setHardness(2.5F).setResistance(3F).setCreativeTab(AddMinecraft.tab).setBlockName("copperore");
    tinore = (new BlockOres(156, 32)).setHardness(2.5F).setResistance(3F).setCreativeTab(AddMinecraft.tab).setBlockName("tinore");
    cheeseblock = (new BlockCheese(157, 48)).setHardness(0.4F).setResistance(3F).setStepSound(Block.soundClothFootstep).setCreativeTab(AddMinecraft.tab).setBlockName("cheeseblock");
    rawPizzablock = (new BlockRawPizza(158, 0)).setHardness(0.8F).setResistance(3F).setStepSound(Block.soundClothFootstep).setBlockName("rawPizzablock");
    pizzablock = (new BlockPizza(159, 0)).setHardness(0.9F).setResistance(3.5F).setStepSound(Block.soundClothFootstep).setBlockName("pizzablock");
    dpizzablock = (new BlockDiamondPizza(160, 0)).setHardness(1.2F).setResistance(8F).setStepSound(Block.soundClothFootstep).setBlockName("dpizzablock");
    bpjukebox = (new BlockBpJukebox(161, 0)).setHardness(1.3F).setResistance(7.0F).setStepSound(Block.soundWoodFootstep)/*.setCreativeTab(AddMinecraft.tab)*/.setBlockName("bpjukebox").setRequiresSelfNotify();
    dirtslab = (new BlockDirtSlab(162, 2)).setHardness(0.5F).setResistance(2.5F).setLightOpacity(1).setStepSound(Block.soundGravelFootstep)/*.setCreativeTab(AddMinecraft.tab)*/.setBlockName("dirtslab");
    sgrass = (new BlockStrangeGrass(163, 9)).setHardness(0F).setResistance(0F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setCreativeTab(AddMinecraft.tab).setBlockName("sgrass");

    silverIngot = new ItemIngots(2033).setIconCoord(2, 9).setCreativeTab(AddMinecraft.tab).setItemName("silverIngot");
    copperIngot = new ItemIngots(2034).setIconCoord(0, 9).setCreativeTab(AddMinecraft.tab).setItemName("copperIngot");
    tinIngot = new ItemIngots(2035).setIconCoord(1, 9).setCreativeTab(AddMinecraft.tab).setItemName("tinIngot");
    bronzeIngot = new ItemIngots(2036).setIconCoord(3, 9).setCreativeTab(AddMinecraft.tab).setItemName("bronzeIngot");
    cookedEgg = (new ItemFoodCookedEgg(2037, 7, 1F, false)).setIconCoord(0, 10).setCreativeTab(AddMinecraft.tab).setItemName("cookedEgg");
    dirtPiece = (new ItemFoodBreadMini(2038, 1, 1F, true)).setPotionEffect(Potion.confusion.id, 60, 0, 0.9F).setIconCoord(1, 10).setCreativeTab(AddMinecraft.tab).setItemName("dirtPiece");
     boneNew = (new ItemFoodBoneNew(2039, 2, 1F, false)).setPotionEffect(Potion.digSpeed.id, 10, 0, 0.3F).setIconCoord(12, 1).setFull3D().setCreativeTab(AddMinecraft.tab).setItemName("boneNew");
    bowlWater = new ItemBowlWater(2040).setIconCoord(2, 10).setCreativeTab(AddMinecraft.tab).setItemName("bowlWater");
    bowl3x = new ItemBowl3x(2041).setIconCoord(4, 10).setCreativeTab(AddMinecraft.tab).setItemName("bowl3x");
    bowlChicken = (new ItemFoodBowlChicken(2042, 8, 1F, false).setIconCoord(3, 10).setCreativeTab(AddMinecraft.tab).setItemName("bowlChicken"));
    bowlEar = (new ItemFoodBowlChicken(2043, 8, 1F, false).setIconCoord(3, 10).setCreativeTab(AddMinecraft.tab).setItemName("bowlEar"));
    breadSmallPile = (new ItemFoodBreadMini(2044, 1, 1F, true).setIconCoord(6, 10).setCreativeTab(AddMinecraft.tab).setItemName("breadSmallPile"));
    breadSmall = (new ItemFoodBreadMini(2045, 4, 1F, true).setIconCoord(7, 10).setCreativeTab(AddMinecraft.tab).setItemName("breadSmall"));
    breadMini = (new ItemFoodBreadMini(2046, 8, 1F, true).setIconCoord(5, 10).setCreativeTab(AddMinecraft.tab).setItemName("breadMini"));
    taste = new ItemTaste(2047).setIconCoord(8, 10).setCreativeTab(AddMinecraft.tab).setItemName("taste");
    rawPizza = (new ItemPizza(2048, rawPizzablock).setMaxStackSize(1).setIconCoord(9, 10).setCreativeTab(AddMinecraft.tab).setItemName("rawPizza"));
    pizza = (new ItemPizza(2049, pizzablock).setMaxStackSize(1).setIconCoord(9, 10).setCreativeTab(AddMinecraft.tab).setItemName("pizza"));
    diamondpizza = (new ItemPizza(2050, dpizzablock).setMaxStackSize(1).setIconCoord(10, 10).setCreativeTab(AddMinecraft.tab).setItemName("diamondpizza"));
    deathFood = (new ItemFoodBreadMini(2051, 0, 1F, false).setPotionEffect(Potion.harm.id, 1, 4, 1F).setIconCoord(13, 10).setFull3D().setCreativeTab(AddMinecraft.tab).setItemName("deathFood"));
    BuIlDaLiBlEHead = (new ItemFoodBreadMini(2052, 20, 1F, true).setPotionEffect(Potion.regeneration.id, 600, 4, 1F).setIconCoord(14, 10).setFull3D().setCreativeTab(AddMinecraft.tab).setItemName("BuIlDaLiBlEHead"));
    cheesePiece = (new ItemFoodCookedEgg(2053, 1, 1F, false).setPotionEffect(Potion.jump.id, 20, 0, 0.2F).setIconCoord(15, 10).setCreativeTab(AddMinecraft.tab).setItemName("cheesePiece"));
    record1 = new ItemMuzon(2054, "009_Sound_System_-_Space_and_Time").setIconCoord(13, 15).setCreativeTab(AddMinecraft.tab).setItemName("record1");
    record2 = new ItemMuzon(2055, "I_Hate_Creepers").setIconCoord(14, 15).setCreativeTab(AddMinecraft.tab).setItemName("record1");
    record3 = new ItemMuzon(2056, "TNT").setIconCoord(15, 15).setCreativeTab(AddMinecraft.tab).setItemName("record1");
    recordMain = new ItemBowl3x(2057).setIconCoord(0, 11).setCreativeTab(AddMinecraft.tab).setItemName("recordMain");

    pickaxeCobblestone = new ItemPickaxeAdditional(2011, toolCOBBLESTONE).setIconCoord(0, 6).setCreativeTab(AddMinecraft.tab).setItemName("pickaxeCobblestone");
    shovelCobblestone = new ItemSpadeAdditional(2012, toolCOBBLESTONE).setIconCoord(0, 5).setCreativeTab(AddMinecraft.tab).setItemName("shovelCobblestone");
    axeCobblestone = new ItemAxeAdditional(2013, toolCOBBLESTONE).setIconCoord(0, 7).setCreativeTab(AddMinecraft.tab).setItemName("axeCobblestone");
    swordCobblestone = new ItemSwordAdditional(2014, toolCOBBLESTONE).setIconCoord(0, 4).setCreativeTab(AddMinecraft.tab).setItemName("swordCobblestone");
    hoeCobblestone = new ItemHoeAdditional(2015, toolCOBBLESTONE).setIconCoord(0, .setCreativeTab(AddMinecraft.tab).setItemName("hoeCobblestone");

    pickaxeSilver = new ItemPickaxeAdditional(2016, toolSILVER).setIconCoord(2, 6).setCreativeTab(AddMinecraft.tab).setItemName("pickaxeSilver");
    shovelSilver = new ItemSpadeAdditional(2017, toolSILVER).setIconCoord(2, 5).setCreativeTab(AddMinecraft.tab).setItemName("shovelSilver");
    axeSilver = new ItemAxeAdditional(2018, toolSILVER).setIconCoord(2, 7).setCreativeTab(AddMinecraft.tab).setItemName("axeSilver");
    swordSilver = new ItemSwordAdditional(2019, toolSILVER).setIconCoord(2, 4).setCreativeTab(AddMinecraft.tab).setItemName("swordSilver");
    hoeSilver = new ItemHoeAdditional(2020, toolSILVER).setIconCoord(2, .setCreativeTab(AddMinecraft.tab).setItemName("hoeSilver");

    pickaxeBronze = new ItemPickaxeAdditional(2059, toolBRONZE).setIconCoord(3, 6).setCreativeTab(AddMinecraft.tab).setItemName("pickaxeBronze");
    shovelBronze = new ItemSpadeAdditional(2060, toolBRONZE).setIconCoord(3, 5).setCreativeTab(AddMinecraft.tab).setItemName("shovelBronze");
    axeBronze = new ItemAxeAdditional(2061, toolBRONZE).setIconCoord(3, 7).setCreativeTab(AddMinecraft.tab).setItemName("axeBronze");
    swordBronze = new ItemSwordAdditional(2062, toolBRONZE).setIconCoord(3, 4).setCreativeTab(AddMinecraft.tab).setItemName("swordBronze");
    hoeBronze = new ItemHoeAdditional(2063, toolBRONZE).setIconCoord(3, .setCreativeTab(AddMinecraft.tab).setItemName("hoeBronze");

    cobblestoneHelmet = (new ItemArmorCobblestone(2021, armorCOBBLESTONE, 5, 0)).setIconCoord(0, 0).setCreativeTab(AddMinecraft.tab).setItemName("cobblestoneHelmet");
    cobblestonePlate = (new ItemArmorCobblestone(2022, armorCOBBLESTONE, 5, 1)).setIconCoord(0, 1).setCreativeTab(AddMinecraft.tab).setItemName("cobblestonePlate");
    cobblestoneLeggins = (new ItemArmorCobblestone(2023, armorCOBBLESTONE, 5, 2)).setIconCoord(0, 2).setCreativeTab(AddMinecraft.tab).setItemName("cobblestoneLeggins");
    cobblestoneBoots = (new ItemArmorCobblestone(2024, armorCOBBLESTONE, 5, 3)).setIconCoord(0, 3).setCreativeTab(AddMinecraft.tab).setItemName("cobblestoneBoots");

    stoneHelmet = (new ItemArmorStone(2025, armorSTONE, 6, 0)).setIconCoord(1, 0).setCreativeTab(AddMinecraft.tab).setItemName("stoneHelmet");
    stonePlate = (new ItemArmorStone(2026, armorSTONE, 6, 1)).setIconCoord(1, 1).setCreativeTab(AddMinecraft.tab).setItemName("stonePlate");
    stoneLeggins = (new ItemArmorStone(2027, armorSTONE, 6, 2)).setIconCoord(1, 2).setCreativeTab(AddMinecraft.tab).setItemName("stoneLeggins");
    stoneBoots = (new ItemArmorStone(2028, armorSTONE, 6, 3)).setIconCoord(1, 3).setCreativeTab(AddMinecraft.tab).setItemName("stoneBoots");

    silverHelmet = (new ItemArmorSilver(2029, armorSILVER, 7, 0)).setIconCoord(2, 0).setCreativeTab(AddMinecraft.tab).setItemName("silverHelmet");
    silverPlate = (new ItemArmorSilver(2030, armorSILVER, 7, 1)).setIconCoord(2, 1).setCreativeTab(AddMinecraft.tab).setItemName("silverPlate");
    silverLeggins = (new ItemArmorSilver(2031, armorSILVER, 7, 2)).setIconCoord(2, 2).setCreativeTab(AddMinecraft.tab).setItemName("silverLeggins");
    silverBoots = (new ItemArmorSilver(2032, armorSILVER, 7, 3)).setIconCoord(2, 3).setCreativeTab(AddMinecraft.tab).setItemName("silverBoots");

    bronzeHelmet = (new ItemArmorBronze(2064, armorBRONZE, 8, 0)).setIconCoord(3, 0).setCreativeTab(AddMinecraft.tab).setItemName("bronzeHelmet");
    bronzePlate = (new ItemArmorBronze(2065, armorBRONZE, 8, 1)).setIconCoord(3, 1).setCreativeTab(AddMinecraft.tab).setItemName("bronzePlate");
    bronzeLeggins = (new ItemArmorBronze(2066, armorBRONZE, 8, 2)).setIconCoord(3, 2).setCreativeTab(AddMinecraft.tab).setItemName("bronzeLeggins");
    bronzeBoots = (new ItemArmorBronze(2067, armorBRONZE, 8, 3)).setIconCoord(3, 3).setCreativeTab(AddMinecraft.tab).setItemName("bronzeBoots");
    
GameRegistry.registerBlock(silverore);
GameRegistry.registerBlock(copperore);
GameRegistry.registerBlock(tinore);
GameRegistry.registerBlock(silverblock);
GameRegistry.registerBlock(copperblock);
GameRegistry.registerBlock(tinblock);
GameRegistry.registerBlock(bronzeblock);
GameRegistry.registerBlock(cheeseblock);
GameRegistry.registerBlock(rawPizzablock);
GameRegistry.registerBlock(pizzablock);
GameRegistry.registerBlock(dpizzablock);
GameRegistry.registerBlock(bpjukebox);
GameRegistry.registerBlock(dirtslab);
GameRegistry.registerBlock(sgrass);
    
LanguageRegistry.addName(silverore, "Silver Ore");
LanguageRegistry.addName(silverIngot, "Silver Ingot");
LanguageRegistry.addName(copperore, "Copper Ore");
LanguageRegistry.addName(copperIngot, "Copper Ingot");
LanguageRegistry.addName(tinore, "Tin Ore");
LanguageRegistry.addName(tinIngot, "Tin Ingot");
LanguageRegistry.addName(bronzeIngot, "Bronze Ingot");
LanguageRegistry.addName(pickaxeCobblestone, "Cobblestone Pickaxe");
LanguageRegistry.addName(shovelCobblestone, "Cobblestone Shovel");
LanguageRegistry.addName(axeCobblestone, "Cobblestone Axe");
LanguageRegistry.addName(swordCobblestone, "Cobblestone Sword");
LanguageRegistry.addName(hoeCobblestone, "Cobblestone Hoe");
LanguageRegistry.addName(pickaxeSilver, "Silver Pickaxe");
LanguageRegistry.addName(shovelSilver, "Silver Shovel");
LanguageRegistry.addName(axeSilver, "Silver Axe");
LanguageRegistry.addName(swordSilver, "Silver Sword");
LanguageRegistry.addName(hoeSilver, "Silver Hoe");
LanguageRegistry.addName(pickaxeBronze, "Bronze Pickaxe");
LanguageRegistry.addName(shovelBronze, "Bronze Shovel");
LanguageRegistry.addName(axeBronze, "Bronze Axe");
LanguageRegistry.addName(swordBronze, "Bronze Sword");
LanguageRegistry.addName(hoeBronze, "Bronze Hoe");
LanguageRegistry.addName(cobblestoneHelmet, "Cobblestone Helmet");
LanguageRegistry.addName(cobblestonePlate, "Cobblestone Chestplate");
LanguageRegistry.addName(cobblestoneLeggins, "Cobblestone Leggins");
LanguageRegistry.addName(cobblestoneBoots, "Cobblestone Boots");
LanguageRegistry.addName(stoneHelmet, "Stone Helmet");
LanguageRegistry.addName(stonePlate, "Stone Chestplate");
LanguageRegistry.addName(stoneLeggins, "Stone Leggins");
LanguageRegistry.addName(stoneBoots, "Stone Boots");
LanguageRegistry.addName(silverHelmet, "Silver Helmet");
LanguageRegistry.addName(silverPlate, "Silver Chestplate");
LanguageRegistry.addName(silverLeggins, "Silver Leggins");
LanguageRegistry.addName(silverBoots, "Silver Boots");
LanguageRegistry.addName(bronzeHelmet, "Bronze Helmet");
LanguageRegistry.addName(bronzePlate, "Bronze Chestplate");
LanguageRegistry.addName(bronzeLeggins, "Bronze Leggins");
LanguageRegistry.addName(bronzeBoots, "Bronze Boots");
LanguageRegistry.addName(cookedEgg, "Cooked Egg");
LanguageRegistry.addName(dirtPiece, "Piece of Dirt");
LanguageRegistry.addName(boneNew, "Bone");
LanguageRegistry.addName(bowlWater, "Water Bowl");
LanguageRegistry.addName(bowl3x, "3x Bowls");
LanguageRegistry.addName(bowlChicken, "Chicken Soup Bowl");
LanguageRegistry.addName(bowlEar, "Fish Soup Bowl");
LanguageRegistry.addName(breadSmallPile, "Small Bread Pile");
LanguageRegistry.addName(breadSmall, "Small Bread");
LanguageRegistry.addName(breadMini, "Mini-Bread");
LanguageRegistry.addName(pizza, "Pizza");
LanguageRegistry.addName(taste, "Taste");
LanguageRegistry.addName(rawPizza, "Raw Pizza");
LanguageRegistry.addName(diamondpizza, "Diamond Pizza");
LanguageRegistry.addName(cheeseblock, "Cheese Block");
LanguageRegistry.addName(deathFood, "Order of Death");
LanguageRegistry.addName(BuIlDaLiBlEHead, "BuIlDaLiBlE Head");
LanguageRegistry.addName(cheesePiece, "Piece of Cheese");
LanguageRegistry.addName(silverblock, "Silver Block");
LanguageRegistry.addName(copperblock, "Copper Block");
LanguageRegistry.addName(tinblock, "Tin Block");
LanguageRegistry.addName(bronzeblock, "Bronze Block");
LanguageRegistry.addName(rawPizzablock, "Raw Pizza Block");
LanguageRegistry.addName(pizzablock, "Pizza Block");
LanguageRegistry.addName(dpizzablock, "Diamond Pizza Block");
LanguageRegistry.addName(bpjukebox, "Special Bp Jukebox");
LanguageRegistry.addName(record1, "Music Disc");
LanguageRegistry.addName(recordMain, "Music Disc Base");
LanguageRegistry.addName(dirtslab, "Dirt Slab");
LanguageRegistry.addName(sgrass, "Strange Grass");
}

public void load()
{

MinecraftForge.setBlockHarvestLevel(silverore, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(silverblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(copperblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(tinblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(bronzeblock, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(copperore, "pickaxe", 1);
MinecraftForge.setBlockHarvestLevel(tinore, "pickaxe", 1);
MinecraftForge.setToolClass(pickaxeCobblestone, "pickaxe", 1);
    MinecraftForge.setToolClass(shovelCobblestone, "shovel", 1);
    MinecraftForge.setToolClass(axeCobblestone, "axe", 1);
MinecraftForge.setToolClass(pickaxeSilver, "pickaxe", 2);
    MinecraftForge.setToolClass(shovelSilver, "shovel", 2);
    MinecraftForge.setToolClass(axeSilver, "axe", 2);
MinecraftForge.setToolClass(pickaxeBronze, "pickaxe", 2);
    MinecraftForge.setToolClass(shovelBronze, "shovel", 2);
    MinecraftForge.setToolClass(axeBronze, "axe", 2);

GameRegistry.addShapelessRecipe(new ItemStack(silverIngot, 9), new Object[] {silverblock});
GameRegistry.addShapelessRecipe(new ItemStack(copperIngot, 9), new Object[] {copperblock});
GameRegistry.addShapelessRecipe(new ItemStack(tinIngot, 9), new Object[] {tinblock});
GameRegistry.addShapelessRecipe(new ItemStack(bronzeIngot, 9), new Object[] {bronzeblock});
GameRegistry.addRecipe(new ItemStack(silverblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), silverIngot});
GameRegistry.addRecipe(new ItemStack(copperblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), copperIngot});
GameRegistry.addRecipe(new ItemStack(tinblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeblock, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "CC", "CT", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "CC", "TC", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "CT", "CC", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addRecipe(new ItemStack(bronzeIngot, 3), new Object[] { "TC", "CC", Character.valueOf('C'), copperIngot, Character.valueOf('T'), tinIngot});
GameRegistry.addShapelessRecipe(new ItemStack(dirtPiece, 4), new Object[] {Block.dirt});
GameRegistry.addRecipe(new ItemStack(Block.dirt, 1), new Object[] { "##", "##", Character.valueOf('#'), dirtPiece});
GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 3, 15), new Object[] {boneNew});
GameRegistry.addShapelessRecipe(new ItemStack(bowl3x, 1), new Object[] {Item.bowlEmpty, Item.bowlEmpty, Item.bowlEmpty});
GameRegistry.addShapelessRecipe(new ItemStack(bowlWater, 3), new Object[] {bowl3x, Item.bucketWater});
GameRegistry.addShapelessRecipe(new ItemStack(bowlChicken, 1), new Object[] {bowlWater, Item.chickenCooked});
GameRegistry.addShapelessRecipe(new ItemStack(bowlEar, 1), new Object[] {bowlWater, Item.fishCooked});
GameRegistry.addShapelessRecipe(new ItemStack(breadSmallPile, 4), new Object[] {Item.wheat});
GameRegistry.addRecipe(new ItemStack(breadSmall, 1), new Object[] { "##", "##", Character.valueOf('#'), breadSmallPile});
GameRegistry.addShapelessRecipe(new ItemStack(breadMini, 1), new Object[] {breadSmall, breadSmall});
GameRegistry.addShapelessRecipe(new ItemStack(Item.bread, 1), new Object[] {breadMini, breadMini});
GameRegistry.addShapelessRecipe(new ItemStack(breadSmallPile, 4), new Object[] {breadSmall});
GameRegistry.addShapelessRecipe(new ItemStack(breadSmall, 2), new Object[] {breadMini});
GameRegistry.addShapelessRecipe(new ItemStack(breadMini, 2), new Object[] {Item.bread});
GameRegistry.addShapelessRecipe(new ItemStack(cheeseblock, 3), new Object[] {Item.bucketMilk});
GameRegistry.addShapelessRecipe(new ItemStack(taste, 3), new Object[] {cheeseblock});
GameRegistry.addRecipe(new ItemStack(pizza, 1), new Object[] { "CSP", "#M#", "QQQ", Character.valueOf('C'), Item.chickenCooked, Character.valueOf('S'), Item.beefCooked, Character.valueOf('P'), Item.porkCooked, Character.valueOf('#'), cheeseblock, Character.valueOf('M'), Item.bucketMilk, Character.valueOf('Q'), taste});
GameRegistry.addRecipe(new ItemStack(rawPizza, 1), new Object[] { "CSP", "#M#", "QQQ", Character.valueOf('C'), Item.chickenRaw, Character.valueOf('S'), Item.beefRaw, Character.valueOf('P'), Item.porkRaw, Character.valueOf('#'), cheeseblock, Character.valueOf('M'), Item.bucketMilk, Character.valueOf('Q'), taste});
GameRegistry.addShapelessRecipe(new ItemStack(diamondpizza, 1), new Object[] {pizza, Item.diamond});
GameRegistry.addShapelessRecipe(new ItemStack(Item.bowlEmpty, 3), new Object[] {bowl3x});
GameRegistry.addRecipe(new ItemStack(deathFood, 2), new Object[] { "BRB", "RDR", "BRB", Character.valueOf('B'), boneNew, Character.valueOf('R'), Item.rottenFlesh, Character.valueOf('D'), dirtPiece});
GameRegistry.addRecipe(new ItemStack(cheeseblock, 1), new Object[] { "##", "##", Character.valueOf('#'), cheesePiece});
//GameRegistry.addRecipe(new ItemStack(bpjukebox, 1), new Object[] { "###", "#I#", "###", Character.valueOf('#'), Block.planks, Character.valueOf('I'), Item.ingotIron});
GameRegistry.addShapelessRecipe(new ItemStack(record1, 1), new Object[] {recordMain, Item.bucketWater});
GameRegistry.addShapelessRecipe(new ItemStack(record2, 1), new Object[] {recordMain, Item.gunpowder});
GameRegistry.addShapelessRecipe(new ItemStack(record3, 1), new Object[] {recordMain, Block.tnt});
GameRegistry.addRecipe(new ItemStack(recordMain, 1), new Object[] { "#C#", "SIS", "#C#", Character.valueOf('I'), Item.ingotIron, Character.valueOf('S'), Block.stone, Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(recordMain, 1), new Object[] { "#S#", "CIC", "#S#", Character.valueOf('I'), Item.ingotIron, Character.valueOf('S'), Block.stone, Character.valueOf('C'), Block.cobblestone});
//GameRegistry.addRecipe(new ItemStack(dirtslab, 6), new Object[] { "DDD", Character.valueOf('D'), Block.dirt});
    GameRegistry.addRecipe(new ItemStack(Block.stoneDoubleSlab, 1), new Object[] { "A","A", 'A', Block.stoneSingleSlab});
    GameRegistry.addShapelessRecipe(new ItemStack(boneNew, 1), new Object[] {Item.bone});

GameRegistry.addRecipe(new ItemStack(pickaxeCobblestone, 1), new Object[] { "CCC", "#S#", "#S#", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(shovelCobblestone, 1), new Object[] { "C", "S", "S", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(axeCobblestone, 1), new Object[] { "CC", "CS", "#S", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(swordCobblestone, 1), new Object[] { "C", "C", "S", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(hoeCobblestone, 1), new Object[] { "CC", "S#", "S#", Character.valueOf('C'), Block.cobblestone, Character.valueOf('S'), Item.stick});

GameRegistry.addRecipe(new ItemStack(pickaxeSilver, 1), new Object[] { "CCC", "#S#", "#S#", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(shovelSilver, 1), new Object[] { "C", "S", "S", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(axeSilver, 1), new Object[] { "CC", "CS", "#S", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(swordSilver, 1), new Object[] { "C", "C", "S", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(hoeSilver, 1), new Object[] { "CC", "S#", "S#", Character.valueOf('C'), silverIngot, Character.valueOf('S'), Item.stick});

GameRegistry.addRecipe(new ItemStack(pickaxeBronze, 1), new Object[] { "CCC", "#S#", "#S#", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(shovelBronze, 1), new Object[] { "C", "S", "S", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(axeBronze, 1), new Object[] { "CC", "CS", "#S", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(swordBronze, 1), new Object[] { "C", "C", "S", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});
GameRegistry.addRecipe(new ItemStack(hoeBronze, 1), new Object[] {"CC", "S#", "S#", Character.valueOf('C'), bronzeIngot, Character.valueOf('S'), Item.stick});

GameRegistry.addRecipe(new ItemStack(cobblestoneHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(cobblestonePlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(cobblestoneLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), Block.cobblestone});
GameRegistry.addRecipe(new ItemStack(cobblestoneBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), Block.cobblestone});

GameRegistry.addRecipe(new ItemStack(stoneHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), Block.stone});
GameRegistry.addRecipe(new ItemStack(stonePlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), Block.stone});
GameRegistry.addRecipe(new ItemStack(stoneLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), Block.stone});
GameRegistry.addRecipe(new ItemStack(stoneBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), Block.stone});

GameRegistry.addRecipe(new ItemStack(silverHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), silverIngot});
GameRegistry.addRecipe(new ItemStack(silverPlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), silverIngot});
GameRegistry.addRecipe(new ItemStack(silverLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), silverIngot});
GameRegistry.addRecipe(new ItemStack(silverBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), silverIngot});

GameRegistry.addRecipe(new ItemStack(bronzeHelmet, 1), new Object[] { "CCC", "C#C", Character.valueOf('C'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzePlate, 1), new Object[] { "C#C", "CCC", "CCC", Character.valueOf('C'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzeLeggins, 1), new Object[] { "CCC", "C#C", "C#C", Character.valueOf('C'), bronzeIngot});
GameRegistry.addRecipe(new ItemStack(bronzeBoots, 1), new Object[] { "C#C", "C#C", Character.valueOf('C'), bronzeIngot});


GameRegistry.addSmelting(silverore.blockID, new ItemStack(silverIngot), 0.75F);
GameRegistry.addSmelting(copperore.blockID, new ItemStack(copperIngot), 0.45F);
GameRegistry.addSmelting(tinore.blockID, new ItemStack(tinIngot), 0.55F);
GameRegistry.addSmelting(Item.egg.shiftedIndex, new ItemStack(cookedEgg), 0.3F);
GameRegistry.addSmelting(rawPizza.shiftedIndex, new ItemStack(pizza), 0.6F);
GameRegistry.addSmelting(record1.shiftedIndex, new ItemStack(recordMain), 0.1F);
GameRegistry.addSmelting(record2.shiftedIndex, new ItemStack(recordMain), 0.1F);
GameRegistry.addSmelting(record3.shiftedIndex, new ItemStack(recordMain), 0.1F);
}

}

 

UPD:

LOL, lauched it! Thx for help.

Link to comment
Share on other sites

New problem! I can't see my armor texture on player.

Armor File:

 

package Bp.mods.addminecraft;
import net.minecraft.src.*;

public class ItemArmorSilver extends ItemArmor
{

        public ItemArmorSilver(int i, EnumArmorMaterial enumarmormaterial, int j, int k)
        {
                super(i, enumarmormaterial, j, k);
        }
        
        public String getTextureFile()
        {
                return "/Bp/mods/addminecraft/items_0.png";
        }

	public String getArmorTextureFile(ItemStack itemstack)
	{
        if(itemstack.itemID == AddMinecraft.silverHelmet.shiftedIndex || itemstack.itemID == AddMinecraft.silverPlate.shiftedIndex || itemstack.itemID == AddMinecraft.silverBoots.shiftedIndex)
        {
                return "/Bp/mods/addminecraft/armor/silver_1.png";
        }
        if(itemstack.itemID == AddMinecraft.silverLeggins.shiftedIndex)
        {
                return "/Bp/mods/addminecraft/armor/silver_2.png";
        }
        return  "/Bp/mods/addminecraft/armor/silver_1.png";
	}

}

 

Again new forge methods?

UPD:

Help, please?

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.

Announcements



×
×
  • Create New...

Important Information

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