package net.shadowfacts.zcraft.block;

import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.shadowfacts.zcraft.item.ZItems;

public class BlockOre extends Block {

	public BlockOre(int par1) {
		super(par1, Material.rock);
	}
	
	
	public int idDropped(int par1, Random par2Random, int par3) {
		
		if (this.blockID == ZBlocks.greenZinchoriumGemOre.blockID) {
			return ZItems.greenZinchoriumGem.itemID;
		} else {
			return this.blockID;
		}
		
	}
	
	public int quantityDropped(Random par1Random) {
		if (this.blockID == ZBlocks.greenZinchoriumGemOre.blockID) {
			return 3;
		} else {
			return 1;
		}
	}

}

@@ -138,16 +138,96 @@
 terial;%0A
+import net.minecraft.entity.item.EntityXPOrb;%0Aimport net.minecraft.world.World;%0A
 import n
@@ -261,16 +261,16 @@
 ZItems;%0A
-
 %0Apublic 
@@ -366,16 +366,25 @@
 ;%0A%09%7D%0A%09%0A%09
+@Override
 %0A%09public
@@ -596,16 +596,27 @@
 %09%09%0A%09%7D%0A%09%0A
+%09@Override%0A
 %09public 
@@ -735,32 +735,32 @@
 n 3;%0A%09%09%7D else %7B%0A
-
 %09%09%09return 1;%0A%09%09%7D
@@ -762,12 +762,321 @@
 ;%0A%09%09%7D%0A%09%7D
+%0A%09%0A%09@Override%0A%09public void dropXpOnBlockBreak(World world, int par2, int par3, int par4, int par5) %7B%0A%09%09if (!world.isRemote) %7B%0A%09%09%09int i1 = EntityXPOrb.getXPSplit(par5);%0A%09%09%09par5 -= i1;%0A%09%09%09world.spawnEntityInWorld(new EntityXPOrb(world, (double)par2 + 0.5d, (double)par3 + 0.5d, (double)par4 + 0.5d, 20));%0A%09%09%7D%0A%09%7D
 %0A%0A%7D%0A

Add experience drop to ores