This commit is contained in:
modmuss50 2015-06-06 20:24:13 +01:00
commit 6f8ce4392b

View file

@ -40,15 +40,26 @@ public class BlockOre extends Block {
} }
@Override @Override
public Item getItemDropped(int meta, Random random, int fortune){ public Item getItemDropped(int meta, Random random, int fortune)
if (meta == 5){ {
return new ItemStack(ModItems.dusts, 1, 60).getItem(); if (meta == 2)
{
return new ItemStack(ModItems.gems, fortune, 0).getItem();
}
if (meta == 3)
{
return new ItemStack(ModItems.gems, fortune, 1).getItem();
}
if (meta == 5)
{
return new ItemStack(ModItems.dusts, fortune, 60).getItem();
} }
return Item.getItemFromBlock(this); return Item.getItemFromBlock(this);
} }
@Override @Override
protected boolean canSilkHarvest() { protected boolean canSilkHarvest()
{
return true; return true;
} }
@ -63,7 +74,20 @@ public class BlockOre extends Block {
} }
@Override @Override
public int damageDropped(int metaData){ public int damageDropped(int metaData)
{
if(metaData == 2 )
{
return 0;
}
else if(metaData == 3)
{
return 1;
}
else if(metaData == 5)
{
return 60;
}
return metaData; return metaData;
} }
@ -90,7 +114,8 @@ public class BlockOre extends Block {
|| ForgeDirection.getOrientation(side) == ForgeDirection.DOWN) || ForgeDirection.getOrientation(side) == ForgeDirection.DOWN)
{ {
return textures[metaData]; return textures[metaData];
} else }
else
{ {
return textures[metaData]; return textures[metaData];
} }