Provided that there is no wood damage, the likelihood is that the cost to repair and level your pier and beam foundation will be in the range of $1000-$2000. Pier and beam foundation repair costs will vary depending on the amount of shimming or wood replacement that is needed.
A professional foundation repair company will shim the floor to level with steel shims. Soft woods, most plywood, particle board, and wood scraps are not adequate for long term leveling and should be replaced.
Replacement of junk scrap shims increases the cost by $500-$1000, as the whole house must be leveled. The results are well worth it. Be clear with the contractor to specify a total re-shim. You won’t regret it.