Friendly Fire

Friendly Fire

Modifies combat to prevent friendly fire to pets and other mobs.

by
2.7M Downloads
fabricforgeneoforgequiltutility
Rent Server with this Mod

About this Mod

The Friendly Fire mod will protect your pets and other vulnerable mobs from accidental damage. With this mod installed you will no longer need to worry about your pets jumping in front of your attacks or an accidental missclick with a weapon.

Why would anyone need this?
Many players have issues with accidentally attacking their pets. This often happens during combat where the pet will jump in the way of an enemy. Some players also have issues with missclicking when trying to feed their pets food. For these reasons players often choose to leave their pets behind rather than taking them along on adventures. This mod aims to resolve this in a way that does not make pets unbalanced or overpowered.

How does it work?
After installing this mod pets will be immune to attacks from their owners. Pets will also be immune to damage from pets that have the same owner as them. Additionally baby animals will also be immune to attacks from all sources. If you need to kill a protected mob for some reason simply sneak/crouch while performing the attack. The mod also provides configuration options which can be used to change or disable the types of mobs that are protected.

Does this work with modded pets?
Yes modded pets should work fine. If a modded pet is not protected it is because the mod developer has not defined the entity as an ownable pet in the game code.

Tags

This mod provides several datapack entity tags to help improve the configuration of the mod. Datapacks are a very flexible way to configure the game and allow players, servers, other mods, and modpacks to configure certain properties.

  • friendlyfire:bypass_pet - This is an item tag that allows items to bypass pet protections.
  • friendlyfire:bypass_all - This is an item tag that allows items to bypass all protections offered by the mod.
  • friendlyfire:general_protection - This is an entity tag that allows other mobs to be granted protection from combat damage.


This example datapack will add villagers and wandering villagers to the protection list. When working with datapacks it is highly recommended to use a mod like Open Loader that simplifies the process of installing datapacks.

Like the mod and want to support me?

Nodecraft sponsor banner

This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!

Available Versions

FriendlyFire-fabric-26.2.0.1release
MC 26.2fabric
July 12, 2026
FriendlyFire-neoforge-26.2.0.1release
MC 26.2neoforge
July 12, 2026
FriendlyFire-fabric-26.1.2.2release
MC 26.1, 26.1.1, 26.1.2fabric
July 12, 2026
FriendlyFire-neoforge-26.1.2.2release
MC 26.1, 26.1.1, 26.1.2neoforge
July 12, 2026
FriendlyFire-fabric-26.1.2.1release
MC 26.1, 26.1.1, 26.1.2fabric
July 11, 2026

How to Install Friendly Fire on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.2).

3

Install Mod

Open the mod browser in the dashboard and search for "Friendly Fire". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforgequilt

Minecraft Versions

26.2, 26.1.2, 26.1.1 (+28 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Friendly Fire server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.2). You can switch loaders with one click in the panel.

Is Friendly Fire compatible with fabric and forge and neoforge and quilt?

Friendly Fire officially supports fabric, forge, neoforge, quilt for Minecraft 26.2, 26.1.2, 26.1.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Friendly Fire – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Friendly Fire consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Friendly Fire with just one click on your server.

Recommended RAM
4 GBfrom €5.2/mo
Minimum 3 GB | per 8 players
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v2.1 only
Server-side
Required

Supported Versions

26.226.1.226.1.126.11.20.41.20.31.20.21.20.11.201.19.4+21 more