int meta = world.getBlockMetadata(x, y, z);
if(!block.getMaterial().isToolNotRequired() && !ForgeHooks.canToolHarvestBlock(block, meta, stack))
return false;
meta = block.damageDropped(meta);
if (tags.getBoolean("Lava") && block.quantityDropped(meta, 0, random) != 0)
{
int amount = block.quantityDropped(random);
Item item = block.getItemDropped(meta, random, EnchantmentHelper.getFortuneModifier(entity));