IMPORTANT DISCLAIMER: This mod in its alpha stages, and will have bugs. Use with caution.
Mob Friendly Fire - Overview
Hit your poor dog again? Yeah, we've all been there. Gotten bad deals and an unwelcome visit by an Iron Golem? Relatable. Being chased through the unpleasentness of The Nether by an endless hoarde of Zombified Piglins? That could have been avoided.
It's a common problem, so here's my take on a solution.
How to Use
Click the button in the survival inventory, add a mob's id to the list- it's that simple. Alternatively, you can add mob ids to the config. To be able to attack the mob again, simply hit the 'remove' button. The current limitation is that it will be valid for all mobs of that type, like in this example, all villagers will be immune to player damage. Note: it has not been tested in multiplayer.
Compatibility
It should be compatible with most mods out of the box, but it is entirely possible for exceptions to occur based on how the mod's damage detection code is structured. MCA is a known issue, where it prevents physical damage, but the mod's villagers will still be angered.
Modpacks?
Be my guest.
Check out some of my other mods!
Mekanism x Vampirism Integration