Back to mods
Friendly Fire project artwork

Modrinth · Minecraft mod

Friendly Fire

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Friendly Fire release should I use?

Updated 27 days ago
Latest stable file 26.2.0.1
Game version 26.2
Loader Fabric

Friendly Fire 26.2.0.1 targets 26.2 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. All 2 required mods have matching files.

Where it goes

Is Friendly Fire required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Friendly Fire 26.2.0.1 need?

26.2.0.1. Change the file and its required mods may change too.

All 2 required mods have matching files

Install Prickle, Fabric API first. We found matching files for this game-version and loader setup.

Prickle Needed by Friendly Fire 26.2.0.1
required
Matching file found Matched file: 26.2.0.3
Fabric API Needed by Friendly Fire 26.2.0.1
required
Matching file found Matched file: 0.156.0+26.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Friendly Fire without breaking your instance.

Built for Friendly Fire 26.2.0.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 26.2.0.1. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Prickle, Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 26.2.0.1. It opens that exact file at the source.

About this project

What does Friendly Fire add?

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?

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

Project description from Modrinth.

Pick your setup

Friendly Fire by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

48 available setups

Showing the newest 12 of 27 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Friendly Fire versions and loaders

100 of 100 releases match

Looking for an older file? The official Modrinth project page is in Resources.