Changed Quantity Dropped for Iridium, Bloodstone and the Soulstones to be randomized (but reasonable)
This commit is contained in:
parent
a96e9dc140
commit
2ca39643eb
1 changed files with 16 additions and 9 deletions
|
|
@ -55,13 +55,6 @@ public class BlockBase extends BlockBreakable {
|
|||
}
|
||||
else return 3.0F;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getLightOpacity(World world, int x, int y, int z)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLightValue(IBlockAccess world, int x, int y, int z)
|
||||
|
|
@ -92,6 +85,7 @@ public class BlockBase extends BlockBreakable {
|
|||
return textures[meta];
|
||||
}
|
||||
|
||||
|
||||
public int idDropped(int par1, Random par2Random, int par3) {
|
||||
switch(par1){
|
||||
case 1:return ItemHandler.Resource.itemID;
|
||||
|
|
@ -139,12 +133,25 @@ public class BlockBase extends BlockBreakable {
|
|||
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()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int BlackSoulstoneDrops(int par1, Random par2Random, int par3)
|
||||
{
|
||||
int w = par2Random.nextInt(3);
|
||||
|
|
|
|||
Loading…
Reference in a new issue