From 2ca39643eb848dad0d7af639d675fbd9b6b08226 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 9 Jul 2013 13:07:37 -0500 Subject: [PATCH] Changed Quantity Dropped for Iridium, Bloodstone and the Soulstones to be randomized (but reasonable) --- common/MysticOres/Blocks/BlockBase.java | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/common/MysticOres/Blocks/BlockBase.java b/common/MysticOres/Blocks/BlockBase.java index 92d1174..47cf900 100644 --- a/common/MysticOres/Blocks/BlockBase.java +++ b/common/MysticOres/Blocks/BlockBase.java @@ -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);