The default minecraft mechanics select a random item from your equipment that has the enchantment mending when you pickup experience orbs. However, the selected item might be fully repaired. If this is the case the collected experience is added to your experience bar and nothing is repaired.
This mod fixes this behavior by only selecting items which need to be repaired.
This mod requires Forge. It was tested with build #2588 for 1.11.2, build #2618 for 1.12.2, build #2051 for 1.9.4 and build #2511 for 1.10.2.
This mod is open source.
USE AT YOUR OWN RISK.
IF YOU RUN INTO BUGS OR PROBLEMS USING THIS MOD TRY TO REPRODUCE THE PROBLEMS/BUGS FIRST WITHOUT THIS MOD BEFORE REPORTING BUGS.