//If its finished, don't use it
if(itemstack.getItemDamage() >= itemstack.getMaxDamage() && type.toolLife > 0)
return itemstack;
hitLiving.heal(type.healAmount);
FlansMod.getPacketHandler().sendToAllAround(new PacketFlak(hitLiving.posX, hitLiving.posY, hitLiving.posZ, 5, "heart"), new NetworkRegistry.TargetPoint(hitLiving.dimension, hitLiving.posX, hitLiving.posY, hitLiving.posZ, 50F));
//If not in creative and the tool should decay, damage it
if(!entityplayer.capabilities.isCreativeMode && type.toolLife > 0)
itemstack.setItemDamage(itemstack.getItemDamage() + 1);
//If the tool is damagable and is destroyed upon being used up, then destroy it