public void setAttackValueToBlock(int x, int y, int v, String p)
    {
        if(v > Block.getBlock(getBlock((chunkID < 0 ? 15-x : x),y)).resistance*50f)
        {
            if(Block.getBlock(getBlock((chunkID < 0 ? 15-x : x),y)).onBlockDestroyedByPlayer(p, 16*chunkID+(chunkID < 0 ? 15-x : x), y, lvl))
            {
                setBlock(x,y,"air");
            }
            super.setAttackValueToBlock(x, y, 0, p);
        }
        else
            super.setAttackValueToBlock(x, y, v, p);
    }