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, it will still damage them. Otherwise, it sends you a hotbar message letting you know the attack was cancelled and informing on the sneaking mechanism. Careful while sneaking!
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.
As of version 1.1, a bonus config file is included with an option to also disable accidental damage against your pets from other players who aren't the owner. They can still damage the pet by sneaking, if this is enabled.
If anyone has differing ideas on how you'd like it to work, feel free to let me know.
How to Install No Friendly Fire (Updated) (Mod)
No Friendly Fire (Updated) by vllax is verified for Forge, Neoforge across Minecraft versions 1.19.2, 1.19.4, 1.20.1, 1.20.4, 1.21.1, 1.21.10 (latest release: 1.1, file size: 10 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19.2, 1.19.4, 1.20.1, 1.20.4, 1.21.1, 1.21.10) and platform (Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Forge, Neoforge.
- Move the downloaded No Friendly Fire (Updated) file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- New config added with an option to disable other players from attacking your pets as well, unless they’re crouching
- Added bonus minecraft versions 1.19.2,1.19.4,1.20.1 forge and 1.20.4 neoforge, like my other mods. Remains the only mod like this available for 1.21.1 neoforge.
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.