--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java 2011/04/25 19:45:54 1389 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java 2011/04/25 20:10:53 1390 @@ -59,6 +59,11 @@ return new ItemStack(263,1); case 17: return null; //instabreak drops wood + case 18: + return (rand.nextInt(16) == 0) ? new ItemStack(6,1,(short)0, (byte)rand.nextInt(4) ) : null; //leaves has 6.25% chance of dropping sapplings - the sappling type is randomized + case 21: //lapis lazuli + int count = rand.nextInt(5) + 4; + return new ItemStack(351,count,(short)0, (byte)4); case 56: //diamond ore drops diamond return new ItemStack(264,1); case 73: @@ -77,11 +82,18 @@ if ( miners.contains(p.getName()) ) { if (p.getItemInHand().getType() == Material.FEATHER) { - event.setInstaBreak(true); Block b = event.getBlock(); + + if (b.getTypeId() == 7) //don't remove bedrock + return; + + event.setInstaBreak(true); + + ItemStack items = getDropItems(b); + if (items != null) { b.getWorld().dropItemNaturally(b.getLocation(), items); }