This simple plugin prevents dogs/wolves from targeting and attacking players or mobs. You can change what mobs dogs are allowed to attack with the plugin's config file.
Code (Text):
# Dogs will not attack players if this is false
attack-players: false
# Dogs will not attack passive mobs if this is false
attack-passive: false
# Dogs will not attack hostile mobs if this is false
attack-hostile: true
# Blacklist dogs from attacking a specific mob, format like the example below:
#attack-blacklist:
# - SHEEP
# - ZOMBIE_VILLAGER
# - ANOTHER_MOB
attack-blacklist:
This plugin has only been tested in 1.21 but it should work for 1.13+. If an older version is not working or you have other issues feel free to add me on Discord @GrogyGames and I can help.