package com.allforfunmc.refineddiamond;

import net.minecraft.block.Block;

import java.util.Random;

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.ItemStack;
import cpw.mods.fml.common.registry.GameRegistry;

public class RefinedOre extends Block {
	private int r;
	private int f = 0;
    public RefinedOre(Material material) {
            super(material);
            setHardness(15F);
            setCreativeTab(Code.AllForFunTab);
            setBlockTextureName("refineddiamondmod:refinedore");
            setHarvestLevel("Pickaxe", 3);
            setResistance(50);
            setBlockName("RefinedOre");
    }
    @Override
    public Item getItemDropped(int metadata, Random random, int fourtune){
    	f = fourtune;
    	
    	if(r == 0){
    		return null;
    	}else if(r == 1 ){
    		return Code.refinedDiamond;
    	}else if(r == 2){
    		return Items.diamond;
    	}else {
    		return Code.refinedDiamond;
    	}	
    }
    @Override
	public int quantityDropped(Random random){
    	r = random.nextInt(f + 1);
    	if (r >= 3){
    		return r - 1;
    	} else {
    		return 1;
    	}
	}
}
@@ -893,16 +893,104 @@
 urtune;%0A
+    %09System.out.println(%22Item Dropped picker: Fourtune:%22 + fourtune + %22, Random:%22 + r);%0A
     %09%0A  
@@ -1283,16 +1283,79 @@
 f + 1);%0A
+    %09System.out.println(%22Dropped Number picker: Random:%22 + r);%0A
     %09if 

Revert "Removed debugging"