跳到正文

No Friendly Fire

作者:Hargrefs

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

  1. You assign players as friend or enemy
  2. The mod stores their UUID
  3. 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.
**

常见问题

No Friendly Fire 支持哪些 Minecraft 版本?

No Friendly Fire 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

No Friendly Fire 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

Hargrefs 的其他作品

查看全部 →