Hello again!
Can you please add this mod called "Project: Save the Pets!"?
The mod will disable pet friendly fire meaning you and your teammates can't hurt each other pets. This can be enabled if you are on the same team (Vanilla teams) with other players and friendly fire is disabled on that team.
The mod can also be applied server wide only if PVP is disabled by default; nobody can ever hurt anyone's pets anymore.
Project: Save the Pets! requires Fabric API.
Thank you very much for your time.