http://breezewiki.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/minecraft/wiki/Damage
Unsuccessful attacks also do not anger neutral mobs. During the immunity period, any damage which is equal to or less than the original damage that caused the immunity is ignored. However, any higher damage (before accounting for armor, enchantments, or status effects) causes only the difference between the original and new damage amounts to be dealt.