package com.Arteman.HellLand.utils;

import com.Arteman.HellLand.HellLand;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;

import java.util.Random;

public class BlockHell extends Block {

    private static ItemStack customDrop;

    public BlockHell(String name, Material material,SoundType soundType,CreativeTabs tabs, float hardness, float resistance, float lightLevel) {
        super(material);
        this.setCreativeTab(tabs);
        this.setBlockName(HellLand.MODID + ":" + name);
        this.setBlockTextureName(HellLand.MODID + ":" + name);
        this.setHardness(hardness);
        this.setResistance(resistance);
        this.setStepSound(soundType);
        this.setHarvestLevel("pickaxe", 3);
        GameRegistry.registerBlock(this, name);
    }

    public void setCustomDrop(ItemStack itemStack){
        if(customDrop == null && itemStack!=null){
            customDrop = itemStack;
        }else{
            customDrop = null;
        }
    }

    public Item getItemDropped(){
        return (customDrop!=null)?customDrop.getItem():new ItemBlock(this);
    }

    public int quantityDroppedWithBonus(int min, Random random)
    {
        if(customDrop != null) {
            return MathHelper.clamp_int(this.quantityDropped(random), 1, customDrop.stackSize);
        }else{
            return 1;
        }
    }

    public int quantityDropped(Random random)
    {
        return random.nextInt(this.customDrop.stackSize);
    }

   // @Override
   // @SideOnly(Side.CLIENT)
   // public int getRenderType() {
    //    return ClientProxy.renderId;
    //}

}

@@ -472,15 +472,8 @@
 ate 
-static 
 Item
@@ -1017,30 +1017,81 @@
 his, name);%0A
+        this.setCustomDrop(new ItemStack(this,1));%0A
     %7D%0A
-
 %0A    public 
@@ -1146,30 +1146,8 @@
  if(
-customDrop == null && 
 item
@@ -1251,32 +1251,46 @@
        %7D%0A    %7D%0A%0A
+    @Override%0A
     public Item 
@@ -1304,16 +1304,55 @@
 Dropped(
+int par1, Random random, int fortuneLvl
 )%7B%0A     
@@ -1362,16 +1362,21 @@
 return (
+this.
 customDr
@@ -1381,55 +1381,60 @@
 Drop
-!
+=
 =null)?
-customDrop.getItem():new ItemBlock(this
+new ItemBlock(this):this.customDrop.getItem(
 );%0A 

Update BlockHell.java