
No Friendly Fire
This project changes colors to your friends and enemies, so you can tell them apart.
NoFriendlyFire is a client-side Fabric mod for Minecraft 1.21.11 that helps you easily identify players by marking them as friends, enemies, or neutral, and displaying them with colored hitboxes.
- 🟢 Friends → Green
- 🔴 Enemies → Red
- 🟠 Neutral players → Orange
The mod is fully client-only, meaning it does not require installation on the server.
Overview
This mod is designed to improve player awareness in multiplayer environments by providing clear visual distinctions between different types of players.
It is especially useful for:
- PvP servers
- Team-based gameplay
- Survival with friends
- Any situation where quick identification matters
Features
🔹 Player Classification
You can assign players into three categories:
- Friend
- Enemy
- Neutral (default)
Each category has its own color for quick visual recognition.
🔹 Custom Hitboxes
The mod renders custom colored hitboxes around players:
- Color depends on player status
- Slightly thicker than default for visibility
- Stable rendering (no flickering)
- Purely visual (does not affect gameplay mechanics)
🔹 Interactive GUI Menu
A built-in Minecraft-style menu allows you to manage players easily.
Menu includes:
-
Tabs:
- Friends
- Enemies
-
Scrollable player list
-
Buttons to:
- Add player (from crosshair)
- Remove player
- Move between friend/enemy lists
🔹 Nickname Display (Not UUID)
- Internally uses UUID for reliability
- Displays player names (nicknames) in UI
- Automatically updates names when players are in your world
🔹 Real-Time Interaction
You can manage players directly in-game:
- Look at a player and press a key to add/remove
- Open menu anytime
- Changes are saved instantly
Controls
| Key | Action |
|---|---|
| H | Open menu |
| F | Add looked-at player as Friend |
| E | Add looked-at player as Enemy |
| R | Remove player from lists |
| J | Toggle hitboxes on/off |
Data Storage
All data is stored locally in a config file:
-
Friends list
-
Enemies list
-
Each entry includes:
- UUID
- Last known username
Advantages:
- Persistent between sessions
- Independent from server
- Reliable identification even if name changes
How It Works
-
You assign players as friend or enemy
-
The mod stores their UUID
-
When rendering:
- It checks player relation
- Applies corresponding color
- Draws hitbox
**If it gets popular i will add features like changing hitbox color for specific player and so on. **
