Enchanting/Levels

The minimum values are all calculated using a linear function y = kx+m 	where y is the calculated minimum value, x is the current enchantment power level and k and m varies between different enchantments. The maximum values can either be: the enchantment's minimum value plus a constant, the default minimum value of a generic enchantment plus a constant, or a constant level. All values obtained from 1.14.4 source code.

Note: that very low modified enchantment levels can fall outside the ranges of all valid enchantments for certain items. If this happens, the item is left un-enchanted, but you are not charged any experience levels and can try enchanting it again.