
A small mod for Minecraft 1.16.5/1.15.2/1.14.4 called Durability Notifier will allow you to turn on some kind of warning when the state of your weapon or tool is approaching critical. At 20% or less of its condition, you will receive a notification about its imminent breakdown and the need to replace it as soon as possible.
Screenshots:

How to install Durability Notifier:
- Download and install Minecraft Forge
- Download the mod
- Without unpacking copy to .minecraft\mods
- Done!
Download Durability Notifier Mod:
For 1.16.5 – 1.16.3DurabilityNotifier_1.16.43_1.0.1.jar [9.04 Kb]
For 1.16.1
DurabilityNotifier_1.16.1_1.0.0.jar [9.48 Kb]
For 1.15.2
DurabilityNotifier_1.15.2_1.0.0.jar [8.83 Kb]
For 1.14.4
DurabilityNotifier_1.14.4_1.0.0.jar [8.91 Kb]
For 1.13.2
DurabilityNotifier_1.13.2_1.0.0.jar [8.97 Kb]
For 1.12.2
DurabilityNotifier_1.0.0_1.12.2.jar [9.92 Kb]
For 1.11.2
DurabilityNotifier_1.0.0_1.11.2.jar [10.0 Kb]