Changed Quantity Dropped for Iridium, Bloodstone and the Soulstones to be randomized (but reasonable)

This commit is contained in:
oitsjustjose 2013-07-09 13:07:37 -05:00
commit 2ca39643eb

View file

@ -55,13 +55,6 @@ public class BlockBase extends BlockBreakable {
} }
else return 3.0F; else return 3.0F;
} }
@Override
public int getLightOpacity(World world, int x, int y, int z)
{
return 0;
}
@Override @Override
public int getLightValue(IBlockAccess world, int x, int y, int z) public int getLightValue(IBlockAccess world, int x, int y, int z)
@ -92,6 +85,7 @@ public class BlockBase extends BlockBreakable {
return textures[meta]; return textures[meta];
} }
public int idDropped(int par1, Random par2Random, int par3) { public int idDropped(int par1, Random par2Random, int par3) {
switch(par1){ switch(par1){
case 1:return ItemHandler.Resource.itemID; case 1:return ItemHandler.Resource.itemID;
@ -139,12 +133,25 @@ public class BlockBase extends BlockBreakable {
default: return 0; default: return 0;
} }
} }
@Override
public int quantityDropped(int meta, int fortune, Random random)
{
switch(meta){
case 2:return random.nextInt(5) + 1;
case 7:return random.nextInt(3) + 1;
case 8:return random.nextInt(4) + 1;
case 9:return random.nextInt(4) + 1;
case 10:return random.nextInt(4) + 1;
default:return 1;
}
}
protected boolean canSilkHarvest() protected boolean canSilkHarvest()
{ {
return true; return true;
} }
public int BlackSoulstoneDrops(int par1, Random par2Random, int par3) public int BlackSoulstoneDrops(int par1, Random par2Random, int par3)
{ {
int w = par2Random.nextInt(3); int w = par2Random.nextInt(3);