Initial 1.11.2 update
This commit is contained in:
@@ -11,23 +11,22 @@ import net.minecraft.item.Item;
|
||||
|
||||
public class BlockCrystalOre extends Block {
|
||||
|
||||
public BlockCrystalOre(Material material) {
|
||||
public BlockCrystalOre(Material material){
|
||||
super(material);
|
||||
this.setSoundType(SoundType.STONE);
|
||||
setResistance(5.0F);
|
||||
setHarvestLevel("pickaxe", 2);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int quantityDropped(IBlockState state, int fortune, Random random)
|
||||
{
|
||||
public int quantityDropped(IBlockState state, int fortune, Random random){
|
||||
if(fortune > 0){
|
||||
return random.nextInt(2) + 1 + random.nextInt(fortune);
|
||||
}else{
|
||||
return random.nextInt(2) + 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(IBlockState state, Random random, int fortune){
|
||||
return WizardryItems.magic_crystal;
|
||||
|
||||
Reference in New Issue
Block a user