I need a Minecraft mod that displays a bright red arrow beneath my player only while I am in combat.
Requirements:
When I enter combat with another player, a bright red arrow should appear directly under my character.
The arrow must always rotate and point toward the player I am currently fighting, updating in real time as they move.
The arrow should stay fixed beneath my feet and move with me.
As soon as I leave combat, the arrow should instantly disappear.
The arrow should only be active during combat and should not appear at any other time.
The mod should work smoothly with Minecraft Fabric 1.21.x.
KodariAug 4 at 8:53 am 2
CombatArrowIndicator
A Fabric mod for Minecraft 1.21.4 that displays a bright red arrow beneath the player's feet during PvP combat. The arrow rotates in real time to always point toward the current opponent, tracking their movement. It remains fixed under the player, moving with them, and instantly disappears when combat ends. Uses a client-side renderer with a custom entity or particle system, combat tracking via damage events, and smooth rotation interpolation for responsive targeting.
Create the Fabric 1.21.4 Gradle project and metadata.
Add server-side combat tracking with timeout, disconnect, death, and damage handling.
Add a synchronized client renderer for the red directional arrow beneath the local player.
Created a complete Fabric 1.21.4 project using Yarn mappings and Java 21.
Added server-side combat tracking triggered by player attacks and damage.
Added a 5-second combat timeout with cleanup on death, disconnect, missing targets, and server shutdown.
Added client synchronization through Fabric custom payload networking.
Added a bright red arrow rendered beneath the player that continuously points toward the current combat opponent.
Can u make this 1.21
KodariAug 4 at 8:54 am 1
Downgrade the project from Fabric/Minecraft 1.21.4 to a compatible 1.21.x target and update metadata/dependencies.
Adjust any source APIs that differ between 1.21.4 and 1.21.
Keep the combat tracking, networking, and directional arrow behavior unchanged.
Updated the project target to Minecraft 1.21:
Minecraft: 1.21
Yarn mappings: 1.21+build.9
Fabric Loader: 0.15.11
Fabric API: 0.100.8+1.21
Minecraft dependency: ~1.21
The combat tracker, networking, and red directional arrow behavior remain unchanged.
Please fabric loader latest
KodariAug 4 at 8:55 am 1
Updated Fabric Loader to the latest available version:
loader_version=0.19.3 in gradle.properties
Minimum required loader set to >=0.19.3 in fabric.mod.json