Simplified and clarified the mechanism. Now just blocks attacks unless you're sneaking, and sends you a hotbar message letting you know how to damage them when you attack while not sneaking.
A simple mod that prevents players from attacking their pets by accident, making the game more convenient.
There is still an option for damaging your pets if you want to intentionally eliminate them. If you hit them while sneaking and jumping, it will still damage them.
Should work with any tamed mobs from any mods, if they are registered as tamed and the attack is registered with you as being the attacker.